[SLP][NFC]Improved isAltShuffle by comparing instructions instead of
opcodes, NFC. NFC part of D115955.
This commit is contained in:
parent
a881215821
commit
dd83befe33
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue