[llvm] [AMDGPU][True16] added Pre-RA hint to improve copy elimination (PR #103366)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 12 06:36:39 PDT 2025


================
@@ -22,12 +22,22 @@
 /// although the same shall be possible with other register classes and
 /// instructions if necessary.
 ///
+/// This pass also adds register allocation hints to COPY.
+/// The hints will be post-processed by SIRegisterInfo::getRegAllocationHints.
+/// When using True16, we often see COPY moving a 16-bit value between a VGPR_32
----------------
jayfoad wrote:

These three lines are duplicated below.

https://github.com/llvm/llvm-project/pull/103366


More information about the llvm-commits mailing list