]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix last-minute change to previs tree-ssa-loop-ch.cc patch
authorJan Hubicka <jh@suse.cz>
Thu, 20 Jul 2023 15:53:31 +0000 (17:53 +0200)
committerJan Hubicka <jh@suse.cz>
Thu, 20 Jul 2023 15:53:31 +0000 (17:53 +0200)
gcc/ChangeLog:

* tree-ssa-loop-ch.cc (should_duplicate_loop_header_p): Use BIT instead of TRUTH
logical ops.

gcc/tree-ssa-loop-ch.cc

index 3e6d16706294fb662b64cdc18928f54332222953..a87ebc58e3d7bc2f4048245fcdf125def2f091a0 100644 (file)
@@ -312,8 +312,8 @@ should_duplicate_loop_header_p (basic_block header, class loop *loop,
             _3 = _1 & _2    <- combined static and iv statement.  */
          tree_code code;
          if (gimple_code (last) == GIMPLE_ASSIGN
-             && ((code = gimple_assign_rhs_code (last)) == TRUTH_AND_EXPR
-                 || code == TRUTH_OR_EXPR || code == TRUTH_XOR_EXPR))
+             && ((code = gimple_assign_rhs_code (last)) == BIT_AND_EXPR
+                 || code == BIT_IOR_EXPR || code == BIT_XOR_EXPR))
            {
              tree op1 = gimple_assign_rhs1 (last);
              tree op2 = gimple_assign_rhs2 (last);