Reduce x - y to -y when we know the 'x' part will get masked off anyways.
authorNick Lewycky <nicholas@mxc.ca>
Wed, 9 Jul 2008 04:32:37 +0000 (04:32 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 9 Jul 2008 04:32:37 +0000 (04:32 +0000)
commitb4d1bc989eec1e9369a6a575b6d9190467babb5e
treecc59b87fdd73019f57ee79dda3737546f7b959a7
parent97c2537269e8c654bc9b3c471ebab927e9cf0b2a
Reduce x - y to -y when we know the 'x' part will get masked off anyways.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53271 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2008-07-08-SubAnd.ll [new file with mode: 0644]