================ @@ -1300,6 +1309,16 @@ bool Compiler<Emitter>::VisitVectorBinOp(const BinaryOperator *E) { if (!this->emitGT(ElemT, E)) return false; break; + case BO_LAnd: + // a && b is equivalent to a!=0 & b!=0 ---------------- tbaederr wrote:
I was trying to prove this wrong but it's really what the current interpreter does. Since the vector isn't implicitly convertible to bool, there's no short-circuiting: https://godbolt.org/z/aaoTPWcKo https://github.com/llvm/llvm-project/pull/107678 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits