[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.cpp
    Evan Cheng 
    evan.cheng at apple.com
       
    Mon May 21 11:43:22 PDT 2007
    
    
  
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.cpp updated: 1.86 -> 1.87
---
Log message:
BlockHasNoFallThrough() now returns true if block ends with a return instruction.
---
Diffs of the changes:  (+5 -0)
 X86InstrInfo.cpp |    5 +++++
 1 files changed, 5 insertions(+)
Index: llvm/lib/Target/X86/X86InstrInfo.cpp
diff -u llvm/lib/Target/X86/X86InstrInfo.cpp:1.86 llvm/lib/Target/X86/X86InstrInfo.cpp:1.87
--- llvm/lib/Target/X86/X86InstrInfo.cpp:1.86	Thu May 17 19:17:09 2007
+++ llvm/lib/Target/X86/X86InstrInfo.cpp	Mon May 21 13:43:02 2007
@@ -486,6 +486,11 @@
   if (MBB.empty()) return false;
   
   switch (MBB.back().getOpcode()) {
+  case X86::RET:     // Return.
+  case X86::RETI:
+  case X86::TAILJMPd:
+  case X86::TAILJMPr:
+  case X86::TAILJMPm:
   case X86::JMP:     // Uncond branch.
   case X86::JMP32r:  // Indirect branch.
   case X86::JMP32m:  // Indirect branch through mem.
    
    
More information about the llvm-commits
mailing list