summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-21 18:44:17 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-21 18:44:17 +0000
commitfc94eb66d2afec3d1db315c5f9c4bfd025f17ed0 (patch)
treed1b423b57209ba90f0e1f04cfb1dbd679bdab52c /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parentee854630e4f93950fa81cf07770e8a1bb129c8c2 (diff)
downloadbcm5719-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/PPCInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp1
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;
OpenPOWER on IntegriCloud