[llvm] r267742 - [InstCombine] Sharpended test case in pr21210.ll

Gerolf Hoflehner via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 10:19:54 PDT 2016


Author: ghoflehner
Date: Wed Apr 27 12:19:54 2016
New Revision: 267742

URL: http://llvm.org/viewvc/llvm-project?rev=267742&view=rev
Log:
[InstCombine] Sharpended  test case in  pr21210.ll

Modified:
    llvm/trunk/test/Transforms/InstCombine/pr21210.ll

Modified: llvm/trunk/test/Transforms/InstCombine/pr21210.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/pr21210.ll?rev=267742&r1=267741&r2=267742&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/pr21210.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/pr21210.ll Wed Apr 27 12:19:54 2016
@@ -31,9 +31,10 @@ entry:
   %cmp = icmp ult i32 %len, 4
   br i1 %cmp, label %bb, label %b1
 bb:
-  %cond = select i1 %cmp, i32 %len, i32 8
-  %cmp11 = icmp eq i32 %cond, 8
-  br i1 %cmp11, label %b0, label %b1
+  %cmp2 = icmp ult i32 %0, 2
+  %cond = select i1 %cmp2, i32 %len, i32 8
+  %cmp3 = icmp eq i32 %cond, 8
+  br i1 %cmp3, label %b0, label %b1
 
 b0:
   call void @foo(i32 %len)




More information about the llvm-commits mailing list