[llvm] [TableGen] Make `!and` short-circuit when either of the operand is zero (PR #113963)

Paul C. Anagnostopoulos via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 08:03:49 PDT 2024


Paul-C-Anagnostopoulos wrote:

Yes, it may be that all the operators that return integers or booleans have no side-effects, but that seems like something we should not rely on. I'm tempted to suggest that we add !land and !lor instead, which would take only bit arguments. But that isn't very C++-ish.

I'll leave the final decision to someone with a stronger opinion on the matter.

https://github.com/llvm/llvm-project/pull/113963


More information about the llvm-commits mailing list