This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner][ARM][RISCV] Teach ShrinkLoadReplaceStoreWithStore to use truncstore.
ClosedPublic

Authored by craig.topper on Jun 19 2022, 12:30 AM.

Details

Summary

The VT we want to shrink to may not be legal especially after type
legalization.

Fixes PR56110.

Diff Detail

Event Timeline

craig.topper created this revision.Jun 19 2022, 12:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2022, 12:30 AM
craig.topper requested review of this revision.Jun 19 2022, 12:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2022, 12:30 AM
RKSimon accepted this revision.Jun 19 2022, 1:04 AM

LGTM with one minor

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
17372–17373

Might be worth extending this comment a little for the new truncstore case

This revision is now accepted and ready to land.Jun 19 2022, 1:04 AM
This revision was landed with ongoing or failed builds.Jun 19 2022, 3:50 PM
This revision was automatically updated to reflect the committed changes.