Replacing m_ConstantInt with m_Constant permits folding of vectors as well as a scalars.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D83058
[InstCombine] Add sext(ashr(shl(trunc(x),c),c)) folding support for vectors ClosedPublic Authored by RKSimon on Jul 2 2020, 9:32 AM.
Details Summary Replacing m_ConstantInt with m_Constant permits folding of vectors as well as a scalars.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 2 2020, 10:23 AM RKSimon retitled this revision from [InstCombine] Add sext(ashr(shl(trunc(x),c),c)) folding support for non-uniform vectors to [InstCombine] Add sext(ashr(shl(trunc(x),c),c)) folding support for vectors.Jul 2 2020, 11:16 AM Closed by commit rG3da42f48101f: [InstCombine] Add sext(ashr(shl(trunc(x),c),c)) folding support for vectors (authored by RKSimon). · Explain WhyJul 3 2020, 2:40 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 275149 llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/sext.ll
llvm/test/Transforms/InstCombine/trunc.ll
|