[PATCH] D91984: [CostModel] Add basic implementation of getGatherScatterOpCost.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 24 00:10:40 PST 2020


dmgreen added a comment.

Hmm. I still don't think it's a great idea to try to SLP vectorize using gather operations if the target does not have any gathers! Having a better base cost does sound good though.

I think with a non-constant mask, the cost should be higher? I don't think you can just do it with a select, it will include i1 extracts and branches over whether the lanes are on or off.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91984



More information about the llvm-commits mailing list