aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorweiguozhi <57237827+weiguozhi@users.noreply.github.com>2025-04-28 09:52:03 -0700
committerGitHub <noreply@github.com>2025-04-28 09:52:03 -0700
commitb25b51eb639da2e726c95bef00409e0d3913435d (patch)
tree195173e806596c50fe97a77568318fcaf881815e /clang/lib/Frontend/CompilerInvocation.cpp
parent2b57ebb50b6d418e70382e655feaa619b558e254 (diff)
downloadllvm-b25b51eb639da2e726c95bef00409e0d3913435d.zip
llvm-b25b51eb639da2e726c95bef00409e0d3913435d.tar.gz
llvm-b25b51eb639da2e726c95bef00409e0d3913435d.tar.bz2
[InlineSpiller] Check rematerialization before folding operand (#134015)
Current implementation tries to fold the operand before rematerialization because it can reduce one register usage. But if there is a physical register available we can still rematerialize it without causing high register pressure. This patch do this check to find the better choice. Then we can produce xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 instead of ucomiss LCPI0_1(%rip), %xmm0
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions