Remove the explicit request for "Latency" scheduling from MSP430,
authorDan Gohman <gohman@apple.com>
Mon, 24 Oct 2011 17:53:16 +0000 (17:53 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 24 Oct 2011 17:53:16 +0000 (17:53 +0000)
as the Latency scheduler is going away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142811 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/MSP430ISelLowering.cpp
test/CodeGen/MSP430/Inst16mm.ll
test/CodeGen/MSP430/indirectbr2.ll

index dc374315171fbdc6d99f49ebff7dbc0f92e0c952..e837ef8897027729af6c5e42097ae66dc20a5c90 100644 (file)
@@ -80,7 +80,6 @@ MSP430TargetLowering::MSP430TargetLowering(MSP430TargetMachine &tm) :
   setStackPointerRegisterToSaveRestore(MSP430::SPW);
   setBooleanContents(ZeroOrOneBooleanContent);
   setBooleanVectorContents(ZeroOrOneBooleanContent); // FIXME: Is this correct?
-  setSchedulingPreference(Sched::Latency);
 
   // We have post-incremented loads / stores.
   setIndexedLoadAction(ISD::POST_INC, MVT::i8, Legal);
index 2337c2c0f241782d9ff09aa577a5db9415b9db4f..d4ae811ac8f0bb9986c615534c3905b51b1ac029 100644 (file)
@@ -64,6 +64,6 @@ entry:
  %0 = load i16* %retval                          ; <i16> [#uses=1]
  ret i16 %0
 ; CHECK: mov2:
-; CHECK:       mov.w   0(r1), 4(r1)
 ; CHECK:       mov.w   2(r1), 6(r1)
+; CHECK:       mov.w   0(r1), 4(r1)
 }
index 93cfb2506bb4138f29765701b2032a560f04d3b8..dc2abf5cd0ff6235917efe7a05c4aaf61d9272bc 100644 (file)
@@ -5,7 +5,7 @@ define internal i16 @foo(i16 %i) nounwind {
 entry:
   %tmp1 = getelementptr inbounds [5 x i8*]* @C.0.2070, i16 0, i16 %i ; <i8**> [#uses=1]
   %gotovar.4.0 = load i8** %tmp1, align 4        ; <i8*> [#uses=1]
-; CHECK: mov.w   .LC.0.2070(r15), pc
+; CHECK: mov.w   .LC.0.2070(r12), pc
   indirectbr i8* %gotovar.4.0, [label %L5, label %L4, label %L3, label %L2, label %L1]
 
 L5:                                               ; preds = %bb2