projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc7016
)
Fix typo that somehow escaped both testing and code inspection.
author
Duncan Sands
<baldrick@free.fr>
Tue, 23 Oct 2012 09:07:02 +0000
(09:07 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Tue, 23 Oct 2012 09:07:02 +0000
(09:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166475
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/InstCombine/InstructionCombining.cpp
b/lib/Transforms/InstCombine/InstructionCombining.cpp
index 390b63c1965d33cbb0eeb61de176741d08571392..7f8c3ae55812914d8b4bfc8e177820b9b84eedba 100644
(file)
--- a/
lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/
lib/Transforms/InstCombine/InstructionCombining.cpp
@@
-965,7
+965,7
@@
Value *InstCombiner::Descale(Value *Val, APInt Scale, bool &NoSignedWrap) {
continue;
}
- if (Cast->getOp
erand(0)
) {
+ if (Cast->getOp
code() == Instruction::Trunc
) {
// Op is truncated from a larger type, descale in the larger type.
// Suppose Op = trunc X, and we descale X as Y * sext Scale. Then
// trunc (Y * sext Scale) = (trunc Y) * Scale