[PATCH] D137699: [RISCV] Don't use zero-stride vector load if there's no optimized u-arch

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 09:38:29 PST 2022


reames requested changes to this revision.
reames added a comment.
This revision now requires changes to proceed.

I have no problem with adding a feature to disable this optimization, but there's two problems with this patch.

First, a bunch of existing CPUs do support this optimization.  Your change doesn't update any of them, so this is strictly a regression.

Second, most designs I'm aware of do implement this optimization.  As such, I really think this patch gets the default wrong.  We should allow disabling optimizations for code targeting designs which don't optimize this case, but if we're targeting a generic riscv64 vector core, assuming this optimization should be the default.

Also, are you are of a specific design which doesn't optimize this case?  If not, the complexity doesn't seem worthwhile.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137699/new/

https://reviews.llvm.org/D137699



More information about the llvm-commits mailing list