[PATCH] D22054: [SystemZ] Fix regression when handling conditional calls
Zhan Jun Liau via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 6 11:57:54 PDT 2016
zhanjunl updated this revision to Diff 62929.
zhanjunl added a comment.
Hmm, you're right, didn't notice there was an addOperand API for the builder. I've updated the diff to use addOperand instead of the specific variants.
http://reviews.llvm.org/D22054
Files:
lib/Target/SystemZ/SystemZInstrInfo.cpp
Index: lib/Target/SystemZ/SystemZInstrInfo.cpp
===================================================================
--- lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -618,14 +618,14 @@
return true;
}
if (Opcode == SystemZ::CallJG) {
- const GlobalValue *Global = MI.getOperand(0).getGlobal();
+ MachineOperand FirstOp = MI.getOperand(0);
const uint32_t *RegMask = MI.getOperand(1).getRegMask();
MI.RemoveOperand(1);
MI.RemoveOperand(0);
MI.setDesc(get(SystemZ::CallBRCL));
MachineInstrBuilder(*MI.getParent()->getParent(), MI)
.addImm(CCValid).addImm(CCMask)
- .addGlobalAddress(Global)
+ .addOperand(FirstOp)
.addRegMask(RegMask)
.addReg(SystemZ::CC, RegState::Implicit);
return true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22054.62929.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160706/cb0146db/attachment.bin>
More information about the llvm-commits
mailing list