From 2871c6c93fadee11c8d0dd3a396ca0d53e1d86f4 Mon Sep 17 00:00:00 2001 From: "Paul C. Anagnostopoulos" Date: Thu, 15 Oct 2020 18:42:27 -0400 Subject: [PATCH] [Aarch64] [TableGen] Clean up !if(!eq(boolean, 1) and related booleans. Differential Revision: https://reviews.llvm.org/D89551 --- llvm/lib/Target/AArch64/SVEInstrFormats.td | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/lib/Target/AArch64/SVEInstrFormats.td b/llvm/lib/Target/AArch64/SVEInstrFormats.td index 7d5a0695035e..a0eafa13d052 100644 --- a/llvm/lib/Target/AArch64/SVEInstrFormats.td +++ b/llvm/lib/Target/AArch64/SVEInstrFormats.td @@ -5653,7 +5653,7 @@ class sve_int_rdffr_pred let Inst{4} = 0; let Inst{3-0} = Pd; - let Defs = !if(!eq (s, 1), [NZCV], []); + let Defs = !if(s, [NZCV], []); let Uses = [FFR]; } @@ -6155,8 +6155,8 @@ class sve_mem_cld_si_base dtype, bit nf, string asm, let Inst{4-0} = Zt; let mayLoad = 1; - let Uses = !if(!eq(nf, 1), [FFR], []); - let Defs = !if(!eq(nf, 1), [FFR], []); + let Uses = !if(nf, [FFR], []); + let Defs = !if(nf, [FFR], []); } multiclass sve_mem_cld_si_base dtype, bit nf, string asm, @@ -6358,8 +6358,8 @@ class sve_mem_cld_ss_base dtype, bit ff, dag iops, string asm, let Inst{4-0} = Zt; let mayLoad = 1; - let Uses = !if(!eq(ff, 1), [FFR], []); - let Defs = !if(!eq(ff, 1), [FFR], []); + let Uses = !if(ff, [FFR], []); + let Defs = !if(ff, [FFR], []); } multiclass sve_mem_cld_ss dtype, string asm, RegisterOperand listty, @@ -7361,7 +7361,7 @@ class sve_int_brkn let Inst{3-0} = Pdm; let Constraints = "$Pdm = $_Pdm"; - let Defs = !if(!eq (S, 0b1), [NZCV], []); + let Defs = !if(S, [NZCV], []); } multiclass sve_int_brkn opc, string asm, SDPatternOperator op> {