[Hexagon] Some cleanup of instruction selection code
[oota-llvm.git] / lib / Target / Hexagon / HexagonFixupHwLoops.cpp
index e8d8f1497bdbb866b4b905be0ec7527f4fbcea18..58d53f559ed647aac88d67f30caa293f4f83dac7 100644 (file)
@@ -178,7 +178,7 @@ void HexagonFixupHwLoops::convertLoopInstr(MachineFunction &MF,
       .addReg(Scratch);
   }
   // Then, set the SA0 with the loop start address.
-  BuildMI(*MBB, MII, DL, TII->get(Hexagon::CONST32_Label), Scratch)
+  BuildMI(*MBB, MII, DL, TII->get(Hexagon::A2_tfrsi), Scratch)
     .addMBB(MII->getOperand(0).getMBB());
   BuildMI(*MBB, MII, DL, TII->get(Hexagon::A2_tfrrcr), Hexagon::SA0)
     .addReg(Scratch);