[llvm-commits] CVS: llvm/test/Regression/Transforms/SCCP/logical-nuke.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Dec 11 15:14:54 PST 2004
Changes in directory llvm/test/Regression/Transforms/SCCP:
logical-nuke.ll added (r1.1)
---
Log message:
New testcase. If one side of and/or is known to be 0/-1, it doesn't matter
if the other side is overdefined.
---
Diffs of the changes: (+8 -0)
Index: llvm/test/Regression/Transforms/SCCP/logical-nuke.ll
diff -c /dev/null llvm/test/Regression/Transforms/SCCP/logical-nuke.ll:1.1
*** /dev/null Sat Dec 11 17:14:50 2004
--- llvm/test/Regression/Transforms/SCCP/logical-nuke.ll Sat Dec 11 17:14:40 2004
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | opt -sccp | llvm-dis | grep 'ret int 0'
+
+ ; Test that SCCP has basic knowledge of when and/or nuke overdefined values.
+
+ int %test(int %X) {
+ %Y = and int %X, 0
+ ret int %Y
+ }
More information about the llvm-commits
mailing list