[SLP] reorderInputsAccordingToOpcode is const method. NFCI.
llvm-svn: 357490
This commit is contained in:
parent
83db88717b
commit
a3b71018d9
|
@ -686,7 +686,7 @@ private:
|
||||||
void reorderInputsAccordingToOpcode(const InstructionsState &S,
|
void reorderInputsAccordingToOpcode(const InstructionsState &S,
|
||||||
ArrayRef<Value *> VL,
|
ArrayRef<Value *> VL,
|
||||||
SmallVectorImpl<Value *> &Left,
|
SmallVectorImpl<Value *> &Left,
|
||||||
SmallVectorImpl<Value *> &Right);
|
SmallVectorImpl<Value *> &Right) const;
|
||||||
struct TreeEntry {
|
struct TreeEntry {
|
||||||
TreeEntry(std::vector<TreeEntry> &Container) : Container(Container) {}
|
TreeEntry(std::vector<TreeEntry> &Container) : Container(Container) {}
|
||||||
|
|
||||||
|
@ -2872,10 +2872,9 @@ static bool shouldReorderOperands(int i, ArrayRef<Value *> Left,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BoUpSLP::reorderInputsAccordingToOpcode(const InstructionsState &S,
|
void BoUpSLP::reorderInputsAccordingToOpcode(
|
||||||
ArrayRef<Value *> VL,
|
const InstructionsState &S, ArrayRef<Value *> VL,
|
||||||
SmallVectorImpl<Value *> &Left,
|
SmallVectorImpl<Value *> &Left, SmallVectorImpl<Value *> &Right) const {
|
||||||
SmallVectorImpl<Value *> &Right) {
|
|
||||||
assert(!VL.empty() && Left.empty() && Right.empty() &&
|
assert(!VL.empty() && Left.empty() && Right.empty() &&
|
||||||
"Unexpected instruction/operand lists");
|
"Unexpected instruction/operand lists");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue