[llvm-commits] [llvm] r95465 - /llvm/trunk/test/Transforms/Reassociate/basictest.ll
Bob Wilson
bob.wilson at apple.com
Fri Feb 5 17:16:25 PST 2010
Author: bwilson
Date: Fri Feb 5 19:16:25 2010
New Revision: 95465
URL: http://llvm.org/viewvc/llvm-project?rev=95465&view=rev
Log:
Add a test for my change to disable reassociation for i1 types.
Modified:
llvm/trunk/test/Transforms/Reassociate/basictest.ll
Modified: llvm/trunk/test/Transforms/Reassociate/basictest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Reassociate/basictest.ll?rev=95465&r1=95464&r2=95465&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Reassociate/basictest.ll (original)
+++ llvm/trunk/test/Transforms/Reassociate/basictest.ll Fri Feb 5 19:16:25 2010
@@ -203,4 +203,14 @@
; CHECK-NEXT: ret i32
}
+; Do not reassociate expressions of type i1
+define i32 @test15(i32 %X1, i32 %X2, i32 %X3) {
+ %A = icmp ne i32 %X1, 0
+ %B = icmp slt i32 %X2, %X3
+ %C = and i1 %A, %B
+ %D = select i1 %C, i32 %X1, i32 0
+ ret i32 %D
+; CHECK: @test15
+; CHECK: and i1 %A, %B
+}
More information about the llvm-commits
mailing list