From fc94eb66d2afec3d1db315c5f9c4bfd025f17ed0 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 21 May 2007 18:44:17 +0000 Subject: BlockHasNoFallThrough() now returns true if block ends with a return instruction. llvm-svn: 37266 --- llvm/lib/Target/Alpha/AlphaInstrInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Target/Alpha/AlphaInstrInfo.cpp') 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; -- cgit v1.2.3