[llvm] [InstCombine] Replace all dominated uses of condition with constants (PR #105510)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 31 00:47:31 PDT 2024


================
@@ -8,54 +8,42 @@ define void @test(i1 %c, ptr %p) {
 ; CHECK-NEXT:  bb16:
 ; CHECK-NEXT:    br i1 [[C:%.*]], label [[BB17:%.*]], label [[BB24:%.*]]
 ; CHECK:       bb17:
-; CHECK-NEXT:    [[I:%.*]] = phi ptr [ [[DOTIN1:%.*]], [[BB47:%.*]] ], [ undef, [[BB16:%.*]] ]
-; CHECK-NEXT:    store ptr [[I]], ptr [[P:%.*]], align 8
 ; CHECK-NEXT:    ret void
 ; CHECK:       bb24:
-; CHECK-NEXT:    br i1 [[C]], label [[BB44:%.*]], label [[BB49:%.*]]
+; CHECK-NEXT:    br i1 false, label [[BB44:%.*]], label [[BB49:%.*]]
----------------
nikic wrote:

This test should probably have independent conditions...

https://github.com/llvm/llvm-project/pull/105510


More information about the llvm-commits mailing list