[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/bit-tracking.ll or.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 12 00:01:47 PST 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
bit-tracking.ll updated: 1.4 -> 1.5
or.ll updated: 1.30 -> 1.31
---
Log message:
tweaks
---
Diffs of the changes: (+10 -1)
bit-tracking.ll | 3 ++-
or.ll | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/Transforms/InstCombine/bit-tracking.ll
diff -u llvm/test/Regression/Transforms/InstCombine/bit-tracking.ll:1.4 llvm/test/Regression/Transforms/InstCombine/bit-tracking.ll:1.5
--- llvm/test/Regression/Transforms/InstCombine/bit-tracking.ll:1.4 Sat Feb 11 20:02:43 2006
+++ llvm/test/Regression/Transforms/InstCombine/bit-tracking.ll Sun Feb 12 02:01:35 2006
@@ -1,6 +1,7 @@
; This file contains various testcases that require tracking whether bits are
; set or cleared by various instructions.
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep %ELIM
+; RUN: llvm-as < %s | opt -instcombine -instcombine -disable-output &&
+; RUN: llvm-as < %s | opt -instcombine -instcombine | llvm-dis | not grep %ELIM
; Reduce down to a single XOR
int %test3(int %B) {
Index: llvm/test/Regression/Transforms/InstCombine/or.ll
diff -u llvm/test/Regression/Transforms/InstCombine/or.ll:1.30 llvm/test/Regression/Transforms/InstCombine/or.ll:1.31
--- llvm/test/Regression/Transforms/InstCombine/or.ll:1.30 Sat Sep 17 22:39:02 2005
+++ llvm/test/Regression/Transforms/InstCombine/or.ll Sun Feb 12 02:01:35 2006
@@ -141,3 +141,11 @@
%tmp.6 = or uint %tmp.5, %tmp.3 ;; add tmp.1, 2
ret uint %tmp.6
}
+
+int %test22(int %B) {
+ %ELIM41 = and int %B, 1 ; <int> [#uses=1]
+ %ELIM7 = and int %B, -2 ; <int> [#uses=1]
+ %ELIM5 = or int %ELIM41, %ELIM7 ; <int> [#uses=1]
+ ret int %ELIM5
+}
+
More information about the llvm-commits
mailing list