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 | 42c01c8d393eb87558b5fb1c99b00a10cdbd3f08 (patch) | |
tree | eae7f92b27f82a011c166af2c9fc0c2b559cd121 /llvm/lib/Target/IA64/IA64AsmPrinter.cpp | |
parent | 471627c49df22df437694fb3881172e2c771d843 (diff) | |
download | bcm5719-llvm-42c01c8d393eb87558b5fb1c99b00a10cdbd3f08.tar.gz bcm5719-llvm-42c01c8d393eb87558b5fb1c99b00a10cdbd3f08.zip |
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
Diffstat (limited to 'llvm/lib/Target/IA64/IA64AsmPrinter.cpp')
0 files changed, 0 insertions, 0 deletions