[PATCH] D102404: [InstCombine] Add instcombine fold for extractelement + splat for scalable vectors

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 12:42:24 PDT 2021


spatel added a comment.

This is not what I had in mind. If we are not creating a new instruction, then we should try to get this into -instsimplify:
https://github.com/llvm/llvm-project/blob/6c92215e07f41cb566d54599e891180fe2ddbea5/llvm/lib/Analysis/InstructionSimplify.cpp#L4492

That's where we handle fixed-length vector splat+extract. Can we add to or adjust the underlying analysis there to handle scalable vectors?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102404



More information about the llvm-commits mailing list