[SLPVectorizer] shouldReorderOperands - just check for reordering. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 24 Mar 2019 13:36:32 +0000 (13:36 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 24 Mar 2019 13:36:32 +0000 (13:36 +0000)
commit5cd4eb96f651ef5b6306ef73835a2da59f63c8cc
tree4571dc708f6b7bb3e4b692d2e0d8abfab94a3d01
parent0a5d4b84724395ae0522235db474e2dba4d9f6e4
[SLPVectorizer] shouldReorderOperands - just check for reordering. NFCI.

Remove the I.getOperand() calls from inside shouldReorderOperands - reorderInputsAccordingToOpcode should handle the creation of the operand lists and shouldReorderOperands should just check to see whether the i'th element should be commuted.

llvm-svn: 356854
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp