diff --git a/src/hotspot/share/opto/loopnode.cpp b/src/hotspot/share/opto/loopnode.cpp index 31e4529d874e4..a4dd713287ad6 100644 --- a/src/hotspot/share/opto/loopnode.cpp +++ b/src/hotspot/share/opto/loopnode.cpp @@ -3901,17 +3901,6 @@ uint IdealLoopTree::est_loop_flow_merge_sz() const { return 0; } -#ifdef ASSERT -bool IdealLoopTree::has_reduction_nodes() const { - for (uint i = 0; i < _body.size(); i++) { - if (_body[i]->is_reduction()) { - return true; - } - } - return false; -} -#endif // ASSERT - #ifndef PRODUCT //------------------------------dump_head-------------------------------------- // Dump 1 liner for loop header info diff --git a/src/hotspot/share/opto/loopnode.hpp b/src/hotspot/share/opto/loopnode.hpp index 731f84c41af79..e54c892d954b9 100644 --- a/src/hotspot/share/opto/loopnode.hpp +++ b/src/hotspot/share/opto/loopnode.hpp @@ -778,11 +778,6 @@ class IdealLoopTree : public ResourceObj { void remove_main_post_loops(CountedLoopNode *cl, PhaseIdealLoop *phase); -#ifdef ASSERT - // Tell whether the body contains nodes marked as reductions. - bool has_reduction_nodes() const; -#endif // ASSERT - #ifndef PRODUCT void dump_head() const; // Dump loop head only void dump() const; // Dump this loop recursively diff --git a/src/hotspot/share/opto/superword.cpp b/src/hotspot/share/opto/superword.cpp index 0d5bf864667aa..047a99513185e 100644 --- a/src/hotspot/share/opto/superword.cpp +++ b/src/hotspot/share/opto/superword.cpp @@ -2453,11 +2453,6 @@ bool SuperWord::output() { return false; } - // Check that the loop to be vectorized does not have inconsistent reduction - // information, which would likely lead to a miscompilation. - assert(!lpt()->has_reduction_nodes() || cl->is_reduction_loop(), - "non-reduction loop contains reduction nodes"); - #ifndef PRODUCT if (TraceLoopOpts) { tty->print("SuperWord::output ");