This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Walk through hints in getDefIgnoringCopies et al
ClosedPublic

Authored by paquette on Jan 27 2021, 4:20 PM.

Details

Summary

Treat hint instructions like G_ASSERT_ZEXT like COPY instructions in helpers which walk through copies.

This ensures that instructions like G_ASSERT_ZEXT won't impact any optimizations that rely on these helpers.

Diff Detail

Event Timeline

paquette created this revision.Jan 27 2021, 4:20 PM
paquette requested review of this revision.Jan 27 2021, 4:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2021, 4:20 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm accepted this revision.Jan 27 2021, 4:22 PM
arsenm added inline comments.
llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-select.mir
3–11

You can drop this IR section

This revision is now accepted and ready to land.Jan 27 2021, 4:22 PM
thakis added a subscriber: thakis.Jan 28 2021, 2:36 PM

Looks like this breaks tests: http://45.33.8.238/linux/38250/step_12.txt

Please take a look and revert for now if it takes a while to fix.

Reverted while I take a look at the test failures...