[all-commits] [llvm/llvm-project] 08f0aa: [IVDescriptors] Call getOpcode on demand in getRed...
Mel Chen via All-commits
all-commits at lists.llvm.org
Wed Apr 30 02:01:37 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 08f0aa48006a34ad24d70a500cf8e0c619f421bc
https://github.com/llvm/llvm-project/commit/08f0aa48006a34ad24d70a500cf8e0c619f421bc
Author: Mel Chen <mel.chen at sifive.com>
Date: 2025-04-30 (Wed, 30 Apr 2025)
Changed paths:
M llvm/lib/Analysis/IVDescriptors.cpp
Log Message:
-----------
[IVDescriptors] Call getOpcode on demand in getReductionOpChain. nfc (#118777)
Non-arithmetic reductions do not require the binary opcodes.
As a first step toward removing the dependency of non-arithmetic
reductions on `getOpcode` function, this patch refactors the
`getReductionOpChain` function.
In the future, once all users of `getOpcode` function are refactored, an
assertion can be added to `getOpcode` function to ensure that only
arithmetic reductions rely on it.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list