[llvm] r357490 - [SLP] reorderInputsAccordingToOpcode is const method. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 2 09:27:11 PDT 2019
Author: rksimon
Date: Tue Apr 2 09:27:11 2019
New Revision: 357490
URL: http://llvm.org/viewvc/llvm-project?rev=357490&view=rev
Log:
[SLP] reorderInputsAccordingToOpcode is const method. NFCI.
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=357490&r1=357489&r2=357490&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Tue Apr 2 09:27:11 2019
@@ -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,
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");
More information about the llvm-commits
mailing list