[llvm] 12b44bf - [SystemZ] Give the EXRL_Pseudo a size value of 6 bytes.

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 22 08:40:12 PDT 2021


Author: Jonas Paulsson
Date: 2021-10-22T17:38:51+02:00
New Revision: 12b44bf5ee3eee46062b5f8f208be20edd0b3e06

URL: https://github.com/llvm/llvm-project/commit/12b44bf5ee3eee46062b5f8f208be20edd0b3e06
DIFF: https://github.com/llvm/llvm-project/commit/12b44bf5ee3eee46062b5f8f208be20edd0b3e06.diff

LOG: [SystemZ] Give the EXRL_Pseudo a size value of 6 bytes.

This pseudo is expanded very late (AsmPrinter) and therefore has to have a
correct size value, or the branch relaxation pass may make a wrong decision.

Review: Ulrich Weigand

Added: 
    

Modified: 
    llvm/lib/Target/SystemZ/SystemZInstrInfo.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.td b/llvm/lib/Target/SystemZ/SystemZInstrInfo.td
index 41d84c8c49ecc..e4760229fd6b5 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.td
+++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.td
@@ -2173,7 +2173,7 @@ let hasSideEffects = 1 in {
   def EX   : SideEffectBinaryRX<"ex", 0x44, ADDR64>;
   def EXRL : SideEffectBinaryRILPC<"exrl", 0xC60, ADDR64>;
   let hasNoSchedulingInfo = 1 in
-    def EXRL_Pseudo : Pseudo<(outs), (ins i64imm:$TargetOpc, ADDR64:$lenMinus1,
+    def EXRL_Pseudo : Alias<6, (outs), (ins i64imm:$TargetOpc, ADDR64:$lenMinus1,
                                           bdaddr12only:$bdl1, bdaddr12only:$bd2),
                                           []>;
 }


        


More information about the llvm-commits mailing list