mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
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
This commit is contained in:
parent
bbc7016c60
commit
f1ec4e4123
@ -965,7 +965,7 @@ Value *InstCombiner::Descale(Value *Val, APInt Scale, bool &NoSignedWrap) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Cast->getOperand(0)) {
|
if (Cast->getOpcode() == Instruction::Trunc) {
|
||||||
// Op is truncated from a larger type, descale in the larger type.
|
// 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
|
// Suppose Op = trunc X, and we descale X as Y * sext Scale. Then
|
||||||
// trunc (Y * sext Scale) = (trunc Y) * Scale
|
// trunc (Y * sext Scale) = (trunc Y) * Scale
|
||||||
|
Loading…
x
Reference in New Issue
Block a user