Evan Cheng 42c01c8d39 If the false case is the current basic block, then this is a self loop.
We do not want to emit "Loop: ... brcond Out; br Loop", as it adds an extra
instruction in the loop.  Instead, invert the condition and emit
"Loop: ... br!cond Loop; br Out.

Generalize the fix by moving it from PPCDAGToDAGISel to SelectionDAGLowering.

llvm-svn: 26231
2006-02-16 08:27:56 +00:00
..
2005-04-21 22:36:52 +00:00
2006-02-14 22:01:57 +00:00
2006-01-16 21:12:35 +00:00
2005-04-21 22:36:52 +00:00
2006-02-04 03:27:39 +00:00
2005-04-21 22:36:52 +00:00