[PATCH] D89551: [AArch64] [TableGen] Clean up boolean tests
Paul C. Anagnostopoulos via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 19 07:34:30 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2871c6c93fad: [Aarch64] [TableGen] Clean up !if(!eq(boolean, 1) and related booleans. (authored by Paul-C-Anagnostopoulos).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89551/new/
https://reviews.llvm.org/D89551
Files:
llvm/lib/Target/AArch64/SVEInstrFormats.td
Index: llvm/lib/Target/AArch64/SVEInstrFormats.td
===================================================================
--- llvm/lib/Target/AArch64/SVEInstrFormats.td
+++ llvm/lib/Target/AArch64/SVEInstrFormats.td
@@ -5653,7 +5653,7 @@
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 @@
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<bits<4> dtype, bit nf, string asm,
@@ -6358,8 +6358,8 @@
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<bits<4> dtype, string asm, RegisterOperand listty,
@@ -7361,7 +7361,7 @@
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<bits<1> opc, string asm, SDPatternOperator op> {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89551.299047.patch
Type: text/x-patch
Size: 1230 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201019/4cc53062/attachment.bin>
More information about the llvm-commits
mailing list