commit | c81fe9cab545a93a61c059b1c2813f622aef43ae | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Thu Aug 30 15:07:40 2012 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Thu Aug 30 15:07:40 2012 +0000 |
tree | d98b8b3615701acac48b321096433a4ca8f93c7d | |
parent | e941df5e354ff7d327bab8e59af687ec90fdd149 [diff] [blame] |
InstCombine: Fix comment to reflect the code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162911 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index 003dc55..2a7182f 100644 --- a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -462,7 +462,7 @@ } } - // 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;