Benjamin Kramer
ee40b9a2d4
CVP: If we have a PHI with an incoming select, try to skip the select.
...
This is a common pattern with dyn_cast and similar constructs, when the
PHI no longer depends on the select it can often be turned into a simpler
construct or even get hoisted out of the loop.
PR15340.
llvm-svn: 175995
2013-02-24 15:34:43 +00:00
Benjamin Kramer
b867fea5e6
Fix invalid IR in test, missing incoming value for PHI node.
...
llvm-svn: 175994
2013-02-24 15:34:29 +00:00
Duncan Sands
cca89124a2
Eliminate switch cases that can never match, for example removes all
...
negative switch cases if the branch condition is known to be positive.
Inspired by a recent improvement to GCC's VRP.
llvm-svn: 152405
2012-03-09 13:45:18 +00:00
Owen Anderson
8e7b73743d
Update testcase since we're no longer doing the constant forwarding inline with correlated value propagation.
...
llvm-svn: 117712
2010-10-29 21:18:23 +00:00
Owen Anderson
c91c1a205a
Propagate non-local comparisons. Fixes PR1757.
...
llvm-svn: 113025
2010-09-03 22:47:08 +00:00
Owen Anderson
c725462245
Add support for simplifying a load from a computed value to a load from a global when it
...
is provable that they're equivalent. This fixes PR4855.
llvm-svn: 112994
2010-09-03 19:08:37 +00:00
Owen Anderson
50d8c8888c
Add PR number to test.
...
llvm-svn: 112971
2010-09-03 16:58:25 +00:00
Owen Anderson
064b139c8d
Rename test directory to reflect new pass name.
...
llvm-svn: 112592
2010-08-31 07:50:31 +00:00