diff options
author | Duncan Sands <baldrick@free.fr> | 2012-10-23 09:07:02 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-10-23 09:07:02 +0000 |
commit | f1ec4e4123a8e6d811c072f383399781cfeaa9aa (patch) | |
tree | 7bbffb93a2c34e42028d6bf9972c5ccbf3367183 | |
parent | bbc7016c60bfe319f4d3bbc525547596e85c9aad (diff) | |
download | external_llvm-f1ec4e4123a8e6d811c072f383399781cfeaa9aa.zip external_llvm-f1ec4e4123a8e6d811c072f383399781cfeaa9aa.tar.gz external_llvm-f1ec4e4123a8e6d811c072f383399781cfeaa9aa.tar.bz2 |
Fix typo that somehow escaped both testing and code inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166475 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/InstCombine/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index 390b63c..7f8c3ae 100644 --- 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->getOperand(0)) { + if (Cast->getOpcode() == 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 |