[SLP][NFC]Improved isAltShuffle by comparing instructions instead of

opcodes, NFC.

NFC part of D115955.
This commit is contained in:
Alexey Bataev 2022-01-05 12:30:13 -08:00
parent a881215821
commit dd83befe33
1 changed files with 2 additions and 4 deletions

View File

@ -435,7 +435,7 @@ struct InstructionsState {
}
/// Some of the instructions in the list have alternate opcodes.
bool isAltShuffle() const { return getOpcode() != getAltOpcode(); }
bool isAltShuffle() const { return AltOp != MainOp; }
bool isOpcodeOrAlt(Instruction *I) const {
unsigned CheckedOpcode = I->getOpcode();
@ -2019,9 +2019,7 @@ private:
}
/// Some of the instructions in the list have alternate opcodes.
bool isAltShuffle() const {
return getOpcode() != getAltOpcode();
}
bool isAltShuffle() const { return MainOp != AltOp; }
bool isOpcodeOrAlt(Instruction *I) const {
unsigned CheckedOpcode = I->getOpcode();