From 96e52c13640ba60417ebd1d03cee79a2c0089308 Mon Sep 17 00:00:00 2001 From: David Sherwood Date: Mon, 21 Sep 2020 13:59:35 +0100 Subject: [PATCH] [SVE][CodeGen] Mark ptrue/pfalse instructions as rematerializable --- llvm/lib/Target/AArch64/SVEInstrFormats.td | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Target/AArch64/SVEInstrFormats.td b/llvm/lib/Target/AArch64/SVEInstrFormats.td index e40598d..0d8984b 100644 --- a/llvm/lib/Target/AArch64/SVEInstrFormats.td +++ b/llvm/lib/Target/AArch64/SVEInstrFormats.td @@ -277,6 +277,7 @@ class sve_int_ptrue sz8_64, bits<3> opc, string asm, PPRRegOp pprty, let Inst{3-0} = Pd; let Defs = !if(!eq (opc{0}, 1), [NZCV], []); + let isReMaterializable = 1; } multiclass sve_int_ptrue opc, string asm, SDPatternOperator op> { @@ -499,6 +500,8 @@ class sve_int_pfalse opc, string asm> let Inst{9} = opc{0}; let Inst{8-4} = 0b00000; let Inst{3-0} = Pd; + + let isReMaterializable = 1; } class sve_int_ptest opc, string asm> -- 2.7.4