This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

RKSimon created this revision.Jul 2 2020, 9:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2020, 9:32 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
lebedev.ri accepted this revision.Jul 2 2020, 10:23 AM

LG, thank you.

This 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
RKSimon edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.