]> granicus.if.org Git - llvm/commit
[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)
commit8731cd195cc3ccb1d49ae05e260e94208b60d8c5
tree7e44f21a4668fc830b6acd3d59438252d23f5fe7
parent8b8a0a78353b4378d7ddb0d586da3436e3fb2a54
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356854 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp