[llvm] [SLP] Make getSameOpcode support different instructions if they have same semantics. (PR #112181)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 13:46:25 PDT 2024
================
@@ -3244,15 +3412,25 @@ class BoUpSLP {
auto *I0 = cast<Instruction>(Scalars[0]);
Operands.resize(I0->getNumOperands());
unsigned NumLanes = Scalars.size();
- for (unsigned OpIdx = 0, NumOperands = I0->getNumOperands();
- OpIdx != NumOperands; ++OpIdx) {
+ unsigned NumOperands = I0->getNumOperands();
+ for (unsigned OpIdx = 0; OpIdx != NumOperands; ++OpIdx)
----------------
alexey-bataev wrote:
Same, use seq
https://github.com/llvm/llvm-project/pull/112181
More information about the llvm-commits
mailing list