[libcxx] [flang] [mlir] [clang] [llvm] [clang-tools-extra] [LV] Improve AnyOf reduction codegen. (PR #78304)

Florian Hahn via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 5 06:29:37 PST 2024


================
@@ -453,16 +453,17 @@ Value *VPInstruction::generateInstruction(VPTransformState &State,
         else if (RecurrenceDescriptor::isAnyOfRecurrenceKind(RK)) {
           TrackingVH<Value> ReductionStartValue =
               RdxDesc.getRecurrenceStartValue();
-          ReducedPartRdx = createAnyOfOp(Builder, ReductionStartValue, RK,
-                                         ReducedPartRdx, RdxPart);
+          ReducedPartRdx = Builder.CreateOr(ReducedPartRdx, RdxPart);
----------------
fhahn wrote:

Adjusted, thanks!

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


More information about the cfe-commits mailing list