[llvm] [SLP] NFC. Replace TreeEntry::setOperandsInOrder with VLOperands. (PR #113880)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 04:17:58 PST 2024
================
@@ -3267,8 +3267,18 @@ class BoUpSLP {
void setOperand(ArrayRef<Value *> VL, const BoUpSLP &R,
bool RequireReorder = false) {
VLOperands Ops(VL, R);
- if (RequireReorder)
+ if (RequireReorder) {
Ops.reorder();
+ if (auto *CI = dyn_cast<CallInst>(VL[0])) {
+ Intrinsic::ID ID = getVectorIntrinsicIDForCall(CI, R.TLI);
----------------
alexey-bataev wrote:
Need to add a check that ID is actually an intrinsic and avoid this check for non-intrinsics
https://github.com/llvm/llvm-project/pull/113880
More information about the llvm-commits
mailing list