mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
InstCombine: Fix comment to reflect the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162911 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e941df5e35
commit
c81fe9cab5
@ -462,7 +462,7 @@ Instruction *InstCombiner::visitUDiv(BinaryOperator &I) {
|
||||
}
|
||||
}
|
||||
|
||||
// Udiv ((Lshl x, C1) , C2) -> x / (C2 * 1<<C1);
|
||||
// (x lshr C1) udiv C2 --> x udiv (C2 << C1)
|
||||
if (ConstantInt *C2 = dyn_cast<ConstantInt>(Op1)) {
|
||||
Value *X;
|
||||
ConstantInt *C1;
|
||||
|
Loading…
Reference in New Issue
Block a user