This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] visitTrunc - trunc(shl(X, C)) --> shl(trunc(X),trunc(C)) vector support
ClosedPublic

Authored by RKSimon on Oct 8 2020, 1:18 PM.

Details

Summary

Annoyingly vectors aren't supported by shouldChangeType(), but we have precedents for always performing this on vector types (e.g. narrowBinOp)

Diff Detail

Event Timeline

RKSimon created this revision.Oct 8 2020, 1:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 8 2020, 1:18 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon requested review of this revision.Oct 8 2020, 1:18 PM
lebedev.ri accepted this revision.Oct 8 2020, 1:23 PM

Seems rather straight-forward to me, thanks.

This revision is now accepted and ready to land.Oct 8 2020, 1:23 PM