No-ops emitted for scheduling don't correspond with anything in the
authorDan Gohman <gohman@apple.com>
Wed, 5 May 2010 20:58:01 +0000 (20:58 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 5 May 2010 20:58:01 +0000 (20:58 +0000)
user's source, so don't arbitrarily assign them a debug location.

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

lib/Target/Alpha/AlphaInstrInfo.cpp
lib/Target/MBlaze/MBlazeInstrInfo.cpp
lib/Target/Mips/MipsInstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.cpp

index ba403e22ce3524cc38eb4f0663b5e7f3f6e483ef..9b7e42e177463cc3da5cb87fbbc6ca7e936bc54a 100644 (file)
@@ -399,7 +399,6 @@ unsigned AlphaInstrInfo::RemoveBranch(MachineBasicBlock &MBB) const {
 void AlphaInstrInfo::insertNoop(MachineBasicBlock &MBB, 
                                 MachineBasicBlock::iterator MI) const {
   DebugLoc DL;
-  if (MI != MBB.end()) DL = MI->getDebugLoc();
   BuildMI(MBB, MI, DL, get(Alpha::BISr), Alpha::R31)
     .addReg(Alpha::R31)
     .addReg(Alpha::R31);
index 01f317471ee798baafb2595fec2f4b0181d31f69..c32d1960a30109585e9d4dc30986e75f75d2155e 100644 (file)
@@ -107,7 +107,6 @@ isStoreToStackSlot(const MachineInstr *MI, int &FrameIndex) const {
 void MBlazeInstrInfo::
 insertNoop(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const {
   DebugLoc DL;
-  if (MI != MBB.end()) DL = MI->getDebugLoc();
   BuildMI(MBB, MI, DL, get(MBlaze::NOP));
 }
 
index dbd3c24dc1cd06fc354afda357119438a76a786c..700fb642c362c05252b978f674744f4fb3b79409 100644 (file)
@@ -124,7 +124,6 @@ void MipsInstrInfo::
 insertNoop(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const 
 {
   DebugLoc DL;
-  if (MI != MBB.end()) DL = MI->getDebugLoc();
   BuildMI(MBB, MI, DL, get(Mips::NOP));
 }
 
index ae1fbd8220a7f61e8591d4916ae6ebf68f8bea1b..af88b44d6a2e3925630785acbfc907e09595f7ed 100644 (file)
@@ -203,8 +203,6 @@ PPCInstrInfo::commuteInstruction(MachineInstr *MI, bool NewMI) const {
 void PPCInstrInfo::insertNoop(MachineBasicBlock &MBB, 
                               MachineBasicBlock::iterator MI) const {
   DebugLoc DL;
-  if (MI != MBB.end()) DL = MI->getDebugLoc();
-
   BuildMI(MBB, MI, DL, get(PPC::NOP));
 }