[PATCH] D30455: [InstCombine] Avoid faulty combines of select-cmp-br

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 11:37:16 PST 2017


spatel added inline comments.


================
Comment at: test/Transforms/InstCombine/select-cmp-br.ll:160-168
+define i32 @test6(i32, i1) {
+entry:
+  %2 = select i1 %1, i32 %0, i32 0
+  %3 = icmp eq i32 %2, 0
+  br i1 %3, label %4, label %4
+
+; <label>:2                                      ; preds = %entry, %entry
----------------
Please run 'opt -instnamer' or manually add some names to the test. That makes it easier to see what is happening.


https://reviews.llvm.org/D30455





More information about the llvm-commits mailing list