From 1c17c1bc54335564e86bdb7c5e87383feddbc729 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 22 Sep 2009 00:29:40 +0000 Subject: [PATCH] Minor bug fix. LowerSubregs should translate %S0 = EXTRACT_SUBREG %Q0, 1 to %S0 = IMPLICIT_DEF %Q0 Implicit_def does not *read* any register so the operand should be marked "implicit". The missing "implicit" marker on the operand is wrong, but it doesn't actually break anything. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82503 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LowerSubregs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/CodeGen/LowerSubregs.cpp b/lib/CodeGen/LowerSubregs.cpp index 812d97d66c3..f3157f008b9 100644 --- a/lib/CodeGen/LowerSubregs.cpp +++ b/lib/CodeGen/LowerSubregs.cpp @@ -130,6 +130,7 @@ bool LowerSubregsInstructionPass::LowerExtract(MachineInstr *MI) { // instruction with IMPLICIT_DEF. MI->setDesc(TII.get(TargetInstrInfo::IMPLICIT_DEF)); MI->RemoveOperand(2); // SubIdx + MI->getOperand(1).setImplicit(true); DEBUG(errs() << "subreg: replace by: " << *MI); return true; }