diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-01-04 13:15:50 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-01-04 13:15:50 +0000 |
commit | eb0e1978df7b9e7df3e645bb48fbf655f8aab69a (patch) | |
tree | e410d5a72291fca50a9ce6248a587b0f294bb457 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 1737cc750c464b454ec14b397ce1b7cf504e17a7 (diff) | |
download | llvm-eb0e1978df7b9e7df3e645bb48fbf655f8aab69a.zip llvm-eb0e1978df7b9e7df3e645bb48fbf655f8aab69a.tar.gz llvm-eb0e1978df7b9e7df3e645bb48fbf655f8aab69a.tar.bz2 |
[TargetLowering] SimplifyDemandedBits - call SimplifyMultipleUseDemandedBits for ISD::EXTRACT_VECTOR_ELT (REAPPLIED)
This patch attempts to peek through vectors based on the demanded bits/elt of a particular ISD::EXTRACT_VECTOR_ELT node, allowing us to avoid dependencies on ops that have no impact on the extract.
In particular this helps remove some unnecessary scalar->vector->scalar patterns.
The wasm shift patterns are annoying - @tlively has indicated that the wasm vector shift codegen are to be refactored in the near-term and isn't considered a major issue.
Reapplied after reversion at rL368660 due to PR42982 which was fixed at rGca7fdd41bda0.
Differential Revision: https://reviews.llvm.org/D65887
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions