[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
Tue May 25 05:22:05 PDT 2021


spatel added a comment.

Could this be 2 independent patches?

1. Enhancement to ConstantFold for scalable vectors
2. Add a fold to llvm::SimplifyExtractElementInst() when the base vector is known to be a splat.

If that's right, we should move the tests to `test/Transforms/InstSimplify/{ConstProp}`, so we're checking the minimum required analysis. I don't think we need to touch InstCombine at all.


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