Add a small transform: transform -(X<<Y) to (-X<<Y) when the shift has a single
authorEli Friedman <eli.friedman@gmail.com>
Sun, 31 Jan 2010 02:30:23 +0000 (02:30 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sun, 31 Jan 2010 02:30:23 +0000 (02:30 +0000)
commit694488f4770468f03b974180631c0fbfa21b28cc
treeff3af0445dfed3464a6c36bf37a5f8736a12097e
parent894c1af05fb3f0d8e2ee6565816fa220b260ed9d
Add a small transform: transform -(X<<Y) to (-X<<Y) when the shift has a single
use and X is free to negate.

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