[llvm] Update the base and index value for masked gather (PR #130920)
Rohit Aggarwal via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 17 23:29:15 PDT 2025
rohitaggarwal007 wrote:
> I'm thinking this is more complicated than it needs to be - we should be able to transfer some/all of the SHL into the gather/scatter scale operand (max scale = 8) - assuming we don't lose the sign bit. By doing that we should(?) be able to then recognize when its safe to remove the zext to v16i64 (illegal type so should always be able to truncate to v16i32) - does that make sense?
I didn't understand it completely. How does the scale operand change will impact the Index operand? I might be missing some knowledge here. Thanks
https://github.com/llvm/llvm-project/pull/130920
More information about the llvm-commits
mailing list