[llvm] [TableGen] Make `!and` short-circuit when either of the operand is zero (PR #113963)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 05:09:51 PDT 2024
optimisan wrote:
> There are two ways to solve this problem: (1) Fix !if to postpone the resolution of its true and false values (2) make !and short-circuit.
>
> I post this patch to do (2) first because I thought it can benefit more cases in addition to !if conditions. I'm thinking of posting a patch to do (1) as well and I'm happy to know what's your thought on that.
(1) would be very helpful imo
I was gonna take up (1) as well; I have a sort of workaround here because `!if` crashes here https://github.com/llvm/llvm-project/pull/107829#discussion_r1760605092 although this patch unifies the two-step resolution.
https://github.com/llvm/llvm-project/pull/113963
More information about the llvm-commits
mailing list