1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

InstCombine: Fix comment to reflect the code.

llvm-svn: 162911
This commit is contained in:
Benjamin Kramer 2012-08-30 15:07:40 +00:00
parent be85de62ab
commit e78ea6f9cb

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;