llvm-mirror/lib/Transforms
Eli Friedman ca19f19760 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.

llvm-svn: 79174
2009-08-16 04:23:49 +00:00
..
Hello
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