[llvm-commits] [llvm] r99637 - /llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp
Dale Johannesen
dalej at apple.com
Fri Mar 26 12:21:26 PDT 2010
Author: johannes
Date: Fri Mar 26 14:21:26 2010
New Revision: 99637
URL: http://llvm.org/viewvc/llvm-project?rev=99637&view=rev
Log:
Debug info shouldn't affect kills.
Modified:
llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp
Modified: llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp?rev=99637&r1=99636&r2=99637&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp Fri Mar 26 14:21:26 2010
@@ -572,6 +572,9 @@
static void UpdateKills(MachineInstr &MI, const TargetRegisterInfo* TRI,
BitVector &RegKills,
std::vector<MachineOperand*> &KillOps) {
+ // These do not affect kill info at all.
+ if (MI.isDebugValue())
+ return;
for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
MachineOperand &MO = MI.getOperand(i);
if (!MO.isReg() || !MO.isUse() || MO.isUndef())
More information about the llvm-commits
mailing list