summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r--llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index eeab873ec87..2b5d4d81dd1 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -686,7 +686,7 @@ private:
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) {}
@@ -2872,10 +2872,9 @@ static bool shouldReorderOperands(int i, ArrayRef<Value *> Left,
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");
OpenPOWER on IntegriCloud