[llvm] [TableGen] Make `!and` short-circuit when either of the operand is zero (PR #113963)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 16:43:03 PDT 2024
================
@@ -1543,6 +1543,23 @@ const Init *BinOpInit::resolveReferences(Resolver &R) const {
const Init *lhs = LHS->resolveReferences(R);
const Init *rhs = RHS->resolveReferences(R);
+ if (getOpcode() == AND) {
----------------
jurahul wrote:
Do we need similar short circuit for OR as well?
https://github.com/llvm/llvm-project/pull/113963
More information about the llvm-commits
mailing list