llvm-6502/lib/Transforms
Eli Friedman 12bb766ae9 Fix for PR3016: detect the tricky case, where there are
unfoldable references to a PHI node in the block being folded, and disable
the transformation in that case.  The correct transformation of such PHI
nodes depends on whether BB dominates Succ, and dominance is expensive 
to compute here.  (Alternatively, it's possible to check whether any 
uses are live, but that's also essentially a dominance calculation. 
Another alternative is to use reg2mem, but it probably isn't a good idea to
use that in simplifycfg.)

Also, remove some incorrect code from CanPropagatePredecessorsForPHIs 
which is made unnecessary with this patch: it didn't consider the case 
where a PHI node in BB has multiple uses.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79174 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-16 04:23:49 +00:00
..
Hello Removed trailing whitespace from Makefiles. 2009-01-09 16:44:42 +00:00
Instrumentation Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
IPO Make TargetData optional in GlobalOpt and ArgumentPromotion. 2009-08-14 00:11:03 +00:00
Scalar Don't try to get the context from an erased Instruction. 2009-08-15 21:07:49 +00:00
Utils Fix for PR3016: detect the tricky case, where there are 2009-08-16 04:23:49 +00:00
Makefile I should definitely read make docs someday :( 2009-03-11 20:40:15 +00:00