aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-03 02:27:02 +0000
committerChris Lattner <sabre@nondot.org>2007-03-03 02:27:02 +0000
commitfa83404afa09234daa5aced7bd78ccff4f7e6750 (patch)
treedf11fe3b94896cd773d02c3f02d1c85c4e24043e
parenta16d4429e49b5406c0af905953b5eae13b9cf47c (diff)
instcombine doesn't do CSE, simplify unrelated detail
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34867 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/bswap.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/bswap.ll b/test/Transforms/InstCombine/bswap.ll
index 5eed8b3722..da2354e96e 100644
--- a/test/Transforms/InstCombine/bswap.ll
+++ b/test/Transforms/InstCombine/bswap.ll
@@ -48,8 +48,7 @@ ushort %test5(ushort %a) {
%tmp1 = and int %tmp, 65280
%tmp2 = ashr int %tmp1, ubyte 8
%tmp2 = trunc int %tmp2 to short
- %tmp3 = zext ushort %a to int
- %tmp4 = and int %tmp3, 255
+ %tmp4 = and int %tmp, 255
%tmp5 = shl int %tmp4, ubyte 8
%tmp5 = trunc int %tmp5 to short
%tmp = or short %tmp2, %tmp5