File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2731,6 +2731,10 @@ unsigned RISCVTTIImpl::getMinTripCountTailFoldingThreshold() const {
27312731 return RVVMinTripCount;
27322732}
27332733
2734+ bool RISCVTTIImpl::preferAlternateOpcodeVectorization () const {
2735+ return ST->enableUnalignedVectorMem ();
2736+ }
2737+
27342738TTI::AddressingModeKind
27352739RISCVTTIImpl::getPreferredAddressingMode (const Loop *L,
27362740 ScalarEvolution *SE) const {
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ class RISCVTTIImpl final : public BasicTTIImplBase<RISCVTTIImpl> {
132132
133133 unsigned getMaximumVF (unsigned ElemWidth, unsigned Opcode) const override ;
134134
135- bool preferAlternateOpcodeVectorization () const override { return false ; }
135+ bool preferAlternateOpcodeVectorization () const override ;
136136
137137 bool preferEpilogueVectorization () const override {
138138 // Epilogue vectorization is usually unprofitable - tail folding or
You can’t perform that action at this time.
0 commit comments