I don't see why this optimization isn't safe, but it isn't, so disable it
authorChris Lattner <sabre@nondot.org>
Tue, 31 Jan 2006 02:45:52 +0000 (02:45 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 31 Jan 2006 02:45:52 +0000 (02:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25829 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcISelDAGToDAG.cpp
lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp

index 44df26b06248400e5127f9ecbc7e106fad2f7a5e..91f25f69fe82c845b8be28adc3511011bce63e6a 100644 (file)
@@ -431,7 +431,8 @@ SparcV8TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
         if (CurArgReg < ArgRegEnd) ++CurArgReg;
         if (CurArgReg < ArgRegEnd) ++CurArgReg;
         ArgValues.push_back(DAG.getNode(ISD::UNDEF, ObjectVT));
-      } else if (CurArgReg == ArgRegEnd && ObjectVT == MVT::f64 &&
+      } else if (/* FIXME: Apparently this isn't safe?? */
+                 0 && CurArgReg == ArgRegEnd && ObjectVT == MVT::f64 &&
                  ((CurArgReg-ArgRegs) & 1) == 0) {
         // If this is a double argument and the whole thing lives on the stack,
         // and the argument is aligned, load the double straight from the stack.
index 44df26b06248400e5127f9ecbc7e106fad2f7a5e..91f25f69fe82c845b8be28adc3511011bce63e6a 100644 (file)
@@ -431,7 +431,8 @@ SparcV8TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
         if (CurArgReg < ArgRegEnd) ++CurArgReg;
         if (CurArgReg < ArgRegEnd) ++CurArgReg;
         ArgValues.push_back(DAG.getNode(ISD::UNDEF, ObjectVT));
-      } else if (CurArgReg == ArgRegEnd && ObjectVT == MVT::f64 &&
+      } else if (/* FIXME: Apparently this isn't safe?? */
+                 0 && CurArgReg == ArgRegEnd && ObjectVT == MVT::f64 &&
                  ((CurArgReg-ArgRegs) & 1) == 0) {
         // If this is a double argument and the whole thing lives on the stack,
         // and the argument is aligned, load the double straight from the stack.