[PATCH] D22054: [SystemZ] Fix regression when handling conditional calls

Zhan Jun Liau via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 08:42:09 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL274761: [SystemZ] Fix regression when handling conditional calls (authored by zhanjunl).

Changed prior to commit:
  http://reviews.llvm.org/D22054?vs=62929&id=63079#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D22054

Files:
  llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp

Index: llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -610,14 +610,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.63079.patch
Type: text/x-patch
Size: 837 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160707/118c510f/attachment.bin>


More information about the llvm-commits mailing list