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/Alpha/AlphaInstrInfo.cpp | |
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/Alpha/AlphaInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaInstrInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaInstrInfo.cpp b/llvm/lib/Target/Alpha/AlphaInstrInfo.cpp index 2a72d180193..299a6071488 100644 --- a/llvm/lib/Target/Alpha/AlphaInstrInfo.cpp +++ b/llvm/lib/Target/Alpha/AlphaInstrInfo.cpp @@ -239,6 +239,8 @@ bool AlphaInstrInfo::BlockHasNoFallThrough(MachineBasicBlock &MBB) const { if (MBB.empty()) return false; switch (MBB.back().getOpcode()) { + case Alpha::RETDAG: // Return. + case Alpha::RETDAGp: case Alpha::BR: // Uncond branch. case Alpha::JMP: // Indirect branch. return true; |