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.
Paths
| Differential D95577
[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 TimelineThis revision is now accepted and ready to land.Jan 27 2021, 4:22 PM Closed by commit rG4580acf6752e: [GlobalISel] Walk through hints in getDefIgnoringCopies et al (authored by paquette). · Explain WhyJan 28 2021, 2:29 PM This revision was automatically updated to reflect the committed changes. Comment Actions 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.
Revision Contents
Diff 319967 llvm/include/llvm/CodeGen/GlobalISel/Utils.h
llvm/lib/CodeGen/GlobalISel/Utils.cpp
llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-select.mir
|
You can drop this IR section