summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-06-03 13:28:00 +0000
committered <ed@FreeBSD.org>2009-06-03 13:28:00 +0000
commit036fdcfb2d357cecb320b5a6fd05f4859a63aeba (patch)
tree90502b3518861e1704738c228456f7079013368b /lib/CodeGen/LiveVariables.cpp
parent3277b69d734b9c90b44ebde4ede005717e2c3b2e (diff)
downloadFreeBSD-src-036fdcfb2d357cecb320b5a6fd05f4859a63aeba.zip
FreeBSD-src-036fdcfb2d357cecb320b5a6fd05f4859a63aeba.tar.gz
Import LLVM, at r72770.
This should fix LLVM PR4225.
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r--lib/CodeGen/LiveVariables.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp
index c33d81e..6228821 100644
--- a/lib/CodeGen/LiveVariables.cpp
+++ b/lib/CodeGen/LiveVariables.cpp
@@ -242,20 +242,6 @@ void LiveVariables::HandlePhysRegUse(unsigned Reg, MachineInstr *MI) {
}
}
- // There was an earlier def of a super-register. Add implicit def to that MI.
- //
- // A: EAX = ...
- // B: ... = AX
- //
- // Add implicit def to A if there isn't a use of AX (or EAX) before B.
- if (!PhysRegUse[Reg]) {
- MachineInstr *Def = PhysRegDef[Reg];
- if (Def && !Def->modifiesRegister(Reg))
- Def->addOperand(MachineOperand::CreateReg(Reg,
- true /*IsDef*/,
- true /*IsImp*/));
- }
-
// Remember this use.
PhysRegUse[Reg] = MI;
for (const unsigned *SubRegs = TRI->getSubRegisters(Reg);
OpenPOWER on IntegriCloud