Files
clang-p2996/llvm/lib/CodeGen/MachineLICM.cpp
michaelselehov 56ad6d1939 [MachineLICM] Hoist COPY instruction only when user can be hoisted (#81735)
befa925aca introduced preliminary hoisting of COPY
instructions when the user of the COPY is inside the same loop. That
optimization appeared to be too aggressive and hoisted too many COPY's
greatly increasing register pressure causing performance regressions for
AMDGPU target.

This is intended to fix the regression by hoisting COPY instruction only
if either:
 - User of COPY can be hoisted (other args are invariant) 
 or
 - Hoisting COPY doesn't bring high register pressure
2024-02-27 12:31:29 +00:00

60 KiB