[llvm] [TableGen] Make `!and` short-circuit when either of the operand is zero (PR #113963)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 12:00:52 PDT 2024
mshockwave wrote:
> I believe you are correct that no bang operators produce side-effects. So therefore it should be okay to short-circuit !and when a 0 argument is encountered, and !or when an all-1s argument is encountered.
>
> Be sure to document this, or otherwise there is no point in doing it.
I just added short-circuit for `!or` and the corresponding documentations
https://github.com/llvm/llvm-project/pull/113963
More information about the llvm-commits
mailing list