diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-29 01:23:55 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-29 01:23:55 +0000 |
commit | ee1d91a8301f91318e1aeed55c35ba5f6ca0b913 (patch) | |
tree | d96cc6ff881aaf844f756521bd538b59b743d14e /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 8601a3d4decff0a380e059b037dabf71075497d3 (diff) | |
download | external_llvm-ee1d91a8301f91318e1aeed55c35ba5f6ca0b913.zip external_llvm-ee1d91a8301f91318e1aeed55c35ba5f6ca0b913.tar.gz external_llvm-ee1d91a8301f91318e1aeed55c35ba5f6ca0b913.tar.bz2 |
Avoid emitting a dbg_value machineinstr that's not going to be inserted into entry block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 88245de..adb321d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -222,8 +222,6 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { for (unsigned i = 0, e = FuncInfo->ArgDbgValues.size(); i != e; ++i) { MachineInstr *MI = FuncInfo->ArgDbgValues[e-i-1]; unsigned Reg = MI->getOperand(0).getReg(); - if (!Reg) - continue; if (TargetRegisterInfo::isPhysicalRegister(Reg)) EntryMBB->insert(EntryMBB->begin(), MI); else { |