void reorderInputsAccordingToOpcode(const InstructionsState &S,
ArrayRef<Value *> VL,
SmallVectorImpl<Value *> &Left,
- SmallVectorImpl<Value *> &Right);
+ SmallVectorImpl<Value *> &Right) const;
struct TreeEntry {
TreeEntry(std::vector<TreeEntry> &Container) : Container(Container) {}
return false;
}
-void BoUpSLP::reorderInputsAccordingToOpcode(const InstructionsState &S,
- ArrayRef<Value *> VL,
- SmallVectorImpl<Value *> &Left,
- SmallVectorImpl<Value *> &Right) {
+void BoUpSLP::reorderInputsAccordingToOpcode(
+ const InstructionsState &S, ArrayRef<Value *> VL,
+ SmallVectorImpl<Value *> &Left, SmallVectorImpl<Value *> &Right) const {
assert(!VL.empty() && Left.empty() && Right.empty() &&
"Unexpected instruction/operand lists");