[llvm] [LV] Support float and pointer conditional scalar assignments (PR #184101)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 03:23:35 PST 2026
================
@@ -503,7 +502,12 @@ bool RecurrenceDescriptor::AddReductionVar(
// to evaluate the reduction in the narrower width.
// Check the scalar type to handle both scalar and vector types.
Type *ScalarTy = RecurrenceType->getScalarType();
- if (ScalarTy->isFloatingPointTy()) {
+ if (Kind == RecurKind::FindLast) {
+ // FindLast supports all types can otherwise be used in recurrences.
----------------
MacDue wrote:
I think there's a typo here. Maybe reword as:
```suggestion
// FindLast supports all types all scalar types.
```
https://github.com/llvm/llvm-project/pull/184101
More information about the llvm-commits
mailing list