This is an archive of the discontinued LLVM Phabricator instance.

Pre-commit test case for trunc+lshr+load folds
ClosedPublic

Authored by bjope on Jan 18 2022, 10:49 AM.

Details

Summary

This is a pre-commit of test cases relevant for D117406.

@srl_load_narrowing1 is showing a pattern that could be folded into
a more narrow load.

@srl_load_narrowing2 is showing a similar pattern that happens to
be optimized already, but that happens in two steps (first triggering
a combine based on SRL and later another combine based on TRUNCATE).

Diff Detail

Event Timeline

bjope created this revision.Jan 18 2022, 10:49 AM
bjope requested review of this revision.Jan 18 2022, 10:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 18 2022, 10:49 AM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 24 2022, 3:24 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.