aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/WhitespaceManager.cpp
diff options
context:
space:
mode:
authormichaelselehov <michael.selehov@amd.com>2024-02-27 13:31:29 +0100
committerGitHub <noreply@github.com>2024-02-27 12:31:29 +0000
commit56ad6d19397c4286fa412f5070fd1a563b6c43e4 (patch)
tree11e08a0ef52cf30daad9be9f3c1f17f382fb5e3a /clang/lib/Format/WhitespaceManager.cpp
parentd273a1970e3703cc33ef70382a89e9075287d403 (diff)
downloadllvm-56ad6d19397c4286fa412f5070fd1a563b6c43e4.zip
llvm-56ad6d19397c4286fa412f5070fd1a563b6c43e4.tar.gz
llvm-56ad6d19397c4286fa412f5070fd1a563b6c43e4.tar.bz2
[MachineLICM] Hoist COPY instruction only when user can be hoisted (#81735)
befa925acac8fd6a9266e 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
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
0 files changed, 0 insertions, 0 deletions