[PATCH] D124118: [Peephole-Opt] For one kind of test-after-add pattern, eliminates test if it's correct to do so.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 16:25:45 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/test/CodeGen/X86/peephole-test-after-add.mir:29
+  15:                                               ; preds = %5
+    %16 = icmp eq i64 %10, 0
+    %17 = select i1 %16, i64 0, i64 %7
----------------
Are the other basic blocks important?


================
Comment at: llvm/test/CodeGen/X86/peephole-test-after-add.mir:107
+    
+    ; CHECK: %12:gr32 = AND32ri8 %11, 3, implicit-def $eflags
+    ; CHECK-NEXT: %2:gr64 = SUBREG_TO_REG 0, killed %12, %subreg.sub_32bit
----------------
Please use update_mir_test_checks.py


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124118/new/

https://reviews.llvm.org/D124118



More information about the llvm-commits mailing list