OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
908ae27
)
Fix a bit of backwards logic that broke exptree and smg2000
author
Chris Lattner
<sabre@nondot.org>
Fri, 28 Oct 2005 16:27:35 +0000
(16:27 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 28 Oct 2005 16:27:35 +0000
(16:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24056
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index
4aab096
..
e029f7a
100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-3862,7
+3862,7
@@
Instruction *InstCombiner::PromoteCastOfAllocation(CastInst &CI,
Amt = ConstantUInt::get(Type::UIntTy, Scale);
if (ConstantUInt *CI = dyn_cast<ConstantUInt>(NumElements))
Amt = ConstantExpr::getMul(CI, cast<ConstantUInt>(Amt));
- else if (
cast<ConstantUInt>(Amt)->getValue() =
= 1) {
+ else if (
Scale !
= 1) {
Instruction *Tmp = BinaryOperator::createMul(Amt, NumElements, "tmp");
Amt = InsertNewInstBefore(Tmp, AI);
}