[llvm] 4b29e8c - [AArch64] Mark ptrue (predicate-as-counter) as rematerializable.

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 06:04:45 PDT 2023


Author: Sander de Smalen
Date: 2023-10-31T13:03:46Z
New Revision: 4b29e8cf391f99e684928ecf546b0c64670234f5

URL: https://github.com/llvm/llvm-project/commit/4b29e8cf391f99e684928ecf546b0c64670234f5
DIFF: https://github.com/llvm/llvm-project/commit/4b29e8cf391f99e684928ecf546b0c64670234f5.diff

LOG: [AArch64] Mark ptrue (predicate-as-counter) as rematerializable.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/SVEInstrFormats.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/SVEInstrFormats.td b/llvm/lib/Target/AArch64/SVEInstrFormats.td
index d2f72fda3a229b8..ff641a85f844045 100644
--- a/llvm/lib/Target/AArch64/SVEInstrFormats.td
+++ b/llvm/lib/Target/AArch64/SVEInstrFormats.td
@@ -9249,6 +9249,7 @@ class sve2p1_ptrue_pn<string mnemonic, bits<2> sz, PNRP8to15RegOp pnrty, SDPatte
   let Inst{2-0}   = PNd;
 
   let hasSideEffects = 0;
+  let isReMaterializable = 1;
 }
 
 


        


More information about the llvm-commits mailing list