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.
Differential D89551
[AArch64] [TableGen] Clean up boolean tests Paul-C-Anagnostopoulos on Oct 16 2020, 6:40 AM. Authored by
Details 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 TimelineComment 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. |