[llvm] r180884 - Hexagon: Clear isKill flag on the predicate register in
Jyotsna Verma
jverma at codeaurora.org
Wed May 1 14:27:30 PDT 2013
Author: jverma
Date: Wed May 1 16:27:30 2013
New Revision: 180884
URL: http://llvm.org/viewvc/llvm-project?rev=180884&view=rev
Log:
Hexagon: Clear isKill flag on the predicate register in
PredicateInstruction function.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp?rev=180884&r1=180883&r2=180884&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp Wed May 1 16:27:30 2013
@@ -1811,11 +1811,15 @@ PredicateInstruction(MachineInstr *MI,
// It is better to have an assert here to check this. But I don't know how
// to write this assert because findFirstPredOperandIdx() would return -1
if (oper < -1) oper = -1;
+
MI->getOperand(oper+1).ChangeToRegister(PredMO.getReg(), PredMO.isDef(),
- PredMO.isImplicit(), PredMO.isKill(),
+ PredMO.isImplicit(), false,
PredMO.isDead(), PredMO.isUndef(),
PredMO.isDebug());
+ MachineRegisterInfo &RegInfo = MI->getParent()->getParent()->getRegInfo();
+ RegInfo.clearKillFlags(PredMO.getReg());
+
if (hasGAOpnd)
{
unsigned int i;
More information about the llvm-commits
mailing list