Transform any logical shift of a power of two into an exact/NUW shift when
authorChris Lattner <sabre@nondot.org>
Mon, 23 May 2011 00:21:50 +0000 (00:21 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 May 2011 00:21:50 +0000 (00:21 +0000)
commit05cd88656135255b545d24adb51c2ba1b5c8b99e
tree53a1eb6bec56af7222ee7474e48071b2af22f2bc
parentf415d8b64687d4db7e1986b74e9da6cae72c0fd1
Transform any logical shift of a power of two into an exact/NUW shift when
in a known-non-zero context.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131887 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/shift.ll