[llvm] r188143 - Incorrect JAL instruction attributes caused the optimizer to make a wrong

Reed Kotler rkotler at mips.com
Sat Aug 10 15:18:22 PDT 2013


Author: rkotler
Date: Sat Aug 10 17:18:22 2013
New Revision: 188143

URL: http://llvm.org/viewvc/llvm-project?rev=188143&view=rev
Log:
Incorrect JAL instruction attributes caused the optimizer to make a wrong
instruction move. Just affects static relocation. -static works fine now
with mips16 for the most part.


Modified:
    llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td

Modified: llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td?rev=188143&r1=188142&r2=188143&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td (original)
+++ llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td Sat Aug 10 17:18:22 2013
@@ -684,10 +684,7 @@ def DivuRxRy16: FRR16_div_ins<0b11011, "
 //
 
 def Jal16 : FJAL16_ins<0b0, "jal", IIAlu> {
-  let isBranch = 1;
   let hasDelaySlot = 0;  // not true, but we add the nop for now
-  let isTerminator=1;
-  let isBarrier=1;
   let isCall=1;
 }
 





More information about the llvm-commits mailing list