summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-12-15 03:00:32 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-12-15 03:00:32 +0000
commit852c486946e70bd0efaea750dcb680b6bc151a6d (patch)
tree94bf06cf7d24f2220db51c7c4c26010f289b0f3f /llvm/test
parentf65a0c676887d6746236cdb27de680d23988f03d (diff)
downloadbcm5719-llvm-852c486946e70bd0efaea750dcb680b6bc151a6d.tar.gz
bcm5719-llvm-852c486946e70bd0efaea750dcb680b6bc151a6d.zip
Make 91378 more conservative.
1. Only perform (zext (shl (zext x), y)) -> (shl (zext x), y) when y is a constant. This makes sure it remove at least one zest. 2. If the shift is a left shift, make sure the original shift cannot shift out bits. llvm-svn: 91399
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/zext-shl.ll13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/test/CodeGen/X86/zext-shl.ll b/llvm/test/CodeGen/X86/zext-shl.ll
index bc3198a9d17..928848e3f7a 100644
--- a/llvm/test/CodeGen/X86/zext-shl.ll
+++ b/llvm/test/CodeGen/X86/zext-shl.ll
@@ -23,16 +23,3 @@ entry:
%2 = zext i16 %1 to i32
ret i32 %2
}
-
-define i32 @t3(i8 zeroext %x, i8 zeroext %y) nounwind readnone ssp {
-entry:
-; CHECK: t3:
-; CHECK: shll
-; CHECK-NOT: movzwl
-; CHECK: ret
- %0 = zext i8 %x to i16
- %1 = zext i8 %y to i16
- %2 = shl i16 %0, %1
- %3 = zext i16 %2 to i32
- ret i32 %3
-}
OpenPOWER on IntegriCloud