Inspired by the new TableGen !not operator, I'm making a pass over the .td files to clean up boolean tests. Examples:
!if(!eq(bool, 1), ...) => !if(bool, ...) !if(!eq(bool, 0), ...) => !if(!not(bool), ...)
I'm doing this one target at a time.
Paths
| Differential D89551
[AArch64] [TableGen] Clean up boolean tests ClosedPublic Authored by Paul-C-Anagnostopoulos on Oct 16 2020, 6:40 AM.
Details Summary Inspired by the new TableGen !not operator, I'm making a pass over the .td files to clean up boolean tests. Examples: !if(!eq(bool, 1), ...) => !if(bool, ...) !if(!eq(bool, 0), ...) => !if(!not(bool), ...) I'm doing this one target at a time.
Diff Detail Event TimelineHerald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls. · View Herald Transcript This revision is now accepted and ready to land.Oct 19 2020, 6:36 AM Comment Actions Yes, !if takes a boolean, so there is no need for things like !eq(s, 1). I'm finding these in one target at a time, while looking for places to use !not. Closed by commit rG2871c6c93fad: [Aarch64] [TableGen] Clean up !if(!eq(boolean, 1) and related booleans. (authored by Paul-C-Anagnostopoulos). · Explain WhyOct 19 2020, 7:34 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 298620 llvm/lib/Target/AArch64/SVEInstrFormats.td
|