Posting this mostly for a sanity check. This seems so obvious that I'm a bit worried I'm missing something.
Note that the new reverse costs do appear to match our actual codegen.
Paths
| Differential D145953
[RISCV] Fallback to scalable lowering costs for fixed length vectors ClosedPublic Authored by reames on Mar 13 2023, 9:29 AM.
Details Summary Posting this mostly for a sanity check. This seems so obvious that I'm a bit worried I'm missing something. Note that the new reverse costs do appear to match our actual codegen.
Diff Detail Event Timeline
This revision is now accepted and ready to land.Mar 13 2023, 9:45 AM This revision was landed with ongoing or failed builds.Mar 13 2023, 10:08 AM Closed by commit rGa37dfbb79cbf: [RISCV] Fallback to scalable lowering costs for fixed length vectors (authored by reames). · Explain Why This revision was automatically updated to reflect the committed changes. reames mentioned this in D145973: [RISCV] Improve SK_Reverse shuffle costs for fixed length vectors.Mar 13 2023, 11:36 AM reames added inline comments.
Revision Contents
Diff 504707 llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/shuffle-reverse.ll
|
Most of the diff is code motion. The only semantic change is removing this if clause and applying this to all vectors after giving the fixed vector code a chance to run.