diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-02-16 08:27:56 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-02-16 08:27:56 +0000 |
commit | 298ebf2bd80ca415e58bbcbd9866ee58f167b620 (patch) | |
tree | be283f1d3e98413e6841562c73582eca91bc94e0 /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 8f4880be6675dbf1840446bc7a335f71ff557154 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
0 files changed, 0 insertions, 0 deletions