diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-30 15:07:40 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-30 15:07:40 +0000 |
commit | d4a64716abc19b2643d48e136a75fb9f62315a9f (patch) | |
tree | 74f186c489d08aa3bbd6348a79a7a14adc3ed734 /llvm/lib/Transforms | |
parent | 0eecbbeb5b028fb51ce5b0050713e91aaf501aad (diff) | |
download | bcm5719-llvm-d4a64716abc19b2643d48e136a75fb9f62315a9f.tar.gz bcm5719-llvm-d4a64716abc19b2643d48e136a75fb9f62315a9f.zip |
InstCombine: Fix comment to reflect the code.
llvm-svn: 162911
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index 003dc55a03f..2a7182fc1d4 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp @@ -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; |