[llvm] [SLP] NFC. Remove the useless check for alternate instruction. (PR #117116)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 04:01:55 PST 2024
================
@@ -1003,7 +1003,7 @@ static InstructionsState getSameOpcode(ArrayRef<Value *> VL,
AltPred == CurrentPred || AltPred == SwappedCurrentPred)
continue;
}
- } else if (InstOpcode == Opcode || InstOpcode == AltOpcode) {
+ } else if (InstOpcode == Opcode) {
if (auto *Gep = dyn_cast<GetElementPtrInst>(I)) {
----------------
alexey-bataev wrote:
Add the assertion instead of the check
https://github.com/llvm/llvm-project/pull/117116
More information about the llvm-commits
mailing list