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:
Benjamin Kramer 2012-08-30 15:07:40 +00:00
parent e941df5e35
commit c81fe9cab5

View File

@ -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;