diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-05-21 18:44:17 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-05-21 18:44:17 +0000 |
| commit | fc94eb66d2afec3d1db315c5f9c4bfd025f17ed0 (patch) | |
| tree | d1b423b57209ba90f0e1f04cfb1dbd679bdab52c /llvm/lib/Target/PowerPC | |
| parent | ee854630e4f93950fa81cf07770e8a1bb129c8c2 (diff) | |
| download | bcm5719-llvm-fc94eb66d2afec3d1db315c5f9c4bfd025f17ed0.tar.gz bcm5719-llvm-fc94eb66d2afec3d1db315c5f9c4bfd025f17ed0.zip | |
BlockHasNoFallThrough() now returns true if block ends with a return instruction.
llvm-svn: 37266
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp index e861b2e9ab9..7659a570800 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -276,6 +276,7 @@ bool PPCInstrInfo::BlockHasNoFallThrough(MachineBasicBlock &MBB) const { if (MBB.empty()) return false; switch (MBB.back().getOpcode()) { + case PPC::BLR: // Return. case PPC::B: // Uncond branch. case PPC::BCTR: // Indirect branch. return true; |

