diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-21 00:34:53 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-21 00:34:53 +0000 |
commit | 53799048071ad5746fcbc2dca55cdcf5c5593870 (patch) | |
tree | b5f2430360e366b252cbbb215111064a84e66b5c /lib | |
parent | 990ca5517fd6666d4049b6b8281d9df99da11637 (diff) | |
download | external_llvm-53799048071ad5746fcbc2dca55cdcf5c5593870.zip external_llvm-53799048071ad5746fcbc2dca55cdcf5c5593870.tar.gz external_llvm-53799048071ad5746fcbc2dca55cdcf5c5593870.tar.bz2 |
Add a missing def flag.
*** Bad machine code: Explicit definition marked as use ***
- function: test_cos
- basic block: BB#0 L.entry (0x7ff2a2024fd0)
- instruction: VSETLNi32 %D11, %D11<undef>, %R0, 0, pred:14, pred:%noreg, %Q5<imp-use,kill>, %Q5<imp-def>
- operand 0: %D11
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMBaseInstrInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp index 64d80dc..29033e5 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.cpp +++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp @@ -3464,13 +3464,11 @@ ARMBaseInstrInfo::setExecutionDomain(MachineInstr *MI, unsigned Domain) const { MI->RemoveOperand(0); MI->setDesc(get(ARM::VSETLNi32)); - MIB.addReg(DReg); - MIB.addReg(DReg); + MIB.addReg(DReg, RegState::Define); + MIB.addReg(DReg, RegState::Undef); MIB.addReg(SrcReg); MIB.addImm(Lane); - MIB->getOperand(1).setIsUndef(); - if (isKill) MIB->addRegisterKilled(DstReg, TRI, true); MIB->addRegisterDefined(DstReg, TRI); |