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

via flang-commits flang-commits at lists.llvm.org
Wed Jan 31 03:22:29 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);
----------------
ayalz wrote:

Should `Op` be set to OR and treated by CreateBinOp() above?

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


More information about the flang-commits mailing list