Implement X / C1 / C2 folding
authorChris Lattner <sabre@nondot.org>
Tue, 28 Sep 2004 18:22:15 +0000 (18:22 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 28 Sep 2004 18:22:15 +0000 (18:22 +0000)
commit18d19ca6df0dd3e33c1e4459ffe513084a7acac9
treeee75c240b91f9ba6200ef0ba56592a8a67dbb29b
parent46c4dcde4467ae2563f5f2969d23f9bb7661bf07
Implement X / C1 / C2 folding
Implement (setcc (shl X, C1), C2) folding.

The second one occurs several dozen times in spec.  The first was added
just in case.  :)

These are tested by shift.ll:test2[12], and div.ll:test5

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16549 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp