diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-07 00:32:25 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-07 00:32:25 +0000 |
commit | f0e551d4f4b20fdc9295325774e05d53760a765a (patch) | |
tree | 3972d240da8e354b6416f7f462546e83b6f5ffac /llvm/lib/CodeGen/ProcessImplicitDefs.cpp | |
parent | 5bc8a79e7f7e626ec01f8c50eda6110b293988e9 (diff) | |
download | bcm5719-llvm-f0e551d4f4b20fdc9295325774e05d53760a765a.tar.gz bcm5719-llvm-f0e551d4f4b20fdc9295325774e05d53760a765a.zip |
Revert "Remove references to INSERT_SUBREG after de-SSA" r107725.
Buildbot breakage.
llvm-svn: 107744
Diffstat (limited to 'llvm/lib/CodeGen/ProcessImplicitDefs.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ProcessImplicitDefs.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/ProcessImplicitDefs.cpp b/llvm/lib/CodeGen/ProcessImplicitDefs.cpp index 2caef08b509..80121ca0f29 100644 --- a/llvm/lib/CodeGen/ProcessImplicitDefs.cpp +++ b/llvm/lib/CodeGen/ProcessImplicitDefs.cpp @@ -102,6 +102,21 @@ bool ProcessImplicitDefs::runOnMachineFunction(MachineFunction &fn) { continue; } + if (MI->isInsertSubreg()) { + MachineOperand &MO = MI->getOperand(2); + if (ImpDefRegs.count(MO.getReg())) { + // %reg1032<def> = INSERT_SUBREG %reg1032, undef, 2 + // This is an identity copy, eliminate it now. + if (MO.isKill()) { + LiveVariables::VarInfo& vi = lv_->getVarInfo(MO.getReg()); + vi.removeKill(MI); + } + MI->eraseFromParent(); + Changed = true; + continue; + } + } + // Eliminate %reg1032:sub<def> = COPY undef. if (MI->isCopy() && MI->getOperand(0).getSubReg()) { MachineOperand &MO = MI->getOperand(1); |