summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AutoUpgrade.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-21 00:40:09 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-21 00:40:09 +0000
commit92b4488202ac9f758ea887315e3a1303060e1e94 (patch)
tree51ef79a7376aa543cd118ceff5c600413360ccdd /llvm/lib/VMCore/AutoUpgrade.cpp
parent29b20edfd6092b3e04a95217be290bf03e6fbd7b (diff)
downloadbcm5719-llvm-92b4488202ac9f758ea887315e3a1303060e1e94.tar.gz
bcm5719-llvm-92b4488202ac9f758ea887315e3a1303060e1e94.zip
Undo 48570. Correctly match mmx shift instructions with an immediate operand.
llvm-svn: 48627
Diffstat (limited to 'llvm/lib/VMCore/AutoUpgrade.cpp')
-rw-r--r--llvm/lib/VMCore/AutoUpgrade.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AutoUpgrade.cpp b/llvm/lib/VMCore/AutoUpgrade.cpp
index a46138a612b..343a4b6431b 100644
--- a/llvm/lib/VMCore/AutoUpgrade.cpp
+++ b/llvm/lib/VMCore/AutoUpgrade.cpp
@@ -122,8 +122,7 @@ static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
if (Name.compare(5,10,"x86.mmx.ps",10) == 0 &&
(Name.compare(13,4,"psll", 4) == 0 ||
Name.compare(13,4,"psra", 4) == 0 ||
- Name.compare(13,4,"psrl", 4) == 0) &&
- Name[17] != 'i') {
+ Name.compare(13,4,"psrl", 4) == 0)) {
const llvm::Type *VT = VectorType::get(IntegerType::get(64), 1);
OpenPOWER on IntegriCloud