missed a load
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 27 Jun 2005 16:40:26 +0000 (16:40 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 27 Jun 2005 16:40:26 +0000 (16:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22295 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelPattern.cpp

index 9c9b3d6db08fd8e37ca1c742f41ab5000cb5d70a..f1a9191a25d61c0909ed6e141ed29f2948259b7a 100644 (file)
@@ -265,9 +265,6 @@ AlphaTargetLowering::LowerArguments(Function &F, SelectionDAG &DAG)
 
   MachineBasicBlock& BB = MF.front();
 
-  //Handle the return address
-  //BuildMI(&BB, Alpha::IDEF, 0, Alpha::R26);
-
   unsigned args_int[] = {Alpha::R16, Alpha::R17, Alpha::R18,
                          Alpha::R19, Alpha::R20, Alpha::R21};
   unsigned args_float[] = {Alpha::F16, Alpha::F17, Alpha::F18,
@@ -1307,6 +1304,13 @@ unsigned AlphaISel::SelectExprFP(SDOperand N, unsigned Result)
       SDOperand Address = N.getOperand(1);
       Select(Chain);
 
+      if (EnableAlphaLSMark)
+      {
+        int i = getValueOffset(dyn_cast<SrcValueSDNode>(N.getOperand(2))->getValue());
+        int j = getFunctionOffset(BB->getParent()->getFunction());
+        BuildMI(BB, Alpha::MEMLABEL, 3).addImm(j).addImm(i).addImm(getUID());
+      }
+
       if (Address.getOpcode() == ISD::GlobalAddress) {
         AlphaLowering.restoreGP(BB);
         has_sym = true;