[llvm] [VPlan] Add non-poison propagating LogicalAnd VPInstruction opcode. (PR #91897)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 12:45:57 PDT 2024


================
@@ -557,6 +558,12 @@ Value *VPInstruction::generatePerPart(VPTransformState &State, unsigned Part) {
 
     return ReducedPartRdx;
   }
+  case VPInstruction::LogicalAnd: {
+    Value *A = State.get(getOperand(0), Part);
+    Value *B = State.get(getOperand(1), Part);
+    return Builder.CreateSelect(A, B, ConstantInt::getFalse(A->getType()),
+                                Name);
----------------
fhahn wrote:

Ah yes, done ,thanks!

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


More information about the llvm-commits mailing list