(1 - X) * (-2) -> (x - 1) * 2, for all positive nonzero powers of 2
authorStuart Hastings <stuart@apple.com>
Mon, 30 May 2011 20:00:33 +0000 (20:00 +0000)
committerStuart Hastings <stuart@apple.com>
Mon, 30 May 2011 20:00:33 +0000 (20:00 +0000)
commitacbf107d9b9ffeddbcc3d015107c6faff439ee9b
treefa2416cfb76ac9b8fd8c0176472ad4ea198c237a
parent67dc11352df491a6be79b615f0920ff377bcae5d
(1 - X) * (-2) -> (x - 1) * 2, for all positive nonzero powers of 2
rdar://problem/6501862

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132316 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/2011-05-28-swapmulsub.ll [new file with mode: 0644]