aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorValery Pykhtin <valery.pykhtin@amd.com>2025-10-10 14:03:27 +0200
committerGitHub <noreply@github.com>2025-10-10 14:03:27 +0200
commit5eef98ba319a53567bb1a145852f946e7d72bc5b (patch)
treebfd1be04b229fdf5ce458bc87b17060d264d3abb /clang/lib/CodeGen/CodeGenFunction.cpp
parent2eb8c47b88e83cf310b86480b5b8d0f45a1f91af (diff)
downloadllvm-5eef98ba319a53567bb1a145852f946e7d72bc5b.zip
llvm-5eef98ba319a53567bb1a145852f946e7d72bc5b.tar.gz
llvm-5eef98ba319a53567bb1a145852f946e7d72bc5b.tar.bz2
[AMDGPU] Use correct SlotIndex to calculate live-out register set. (#161720)
Using SlotIndexes::getMBBEndIdx() isn't the correct choice here because it returns the starting index of the next basic block, causing live-ins of the next block to be calculated instead of the intended live-outs of the current block. Add SlotIndexes::getMBBLastIdx() method to return the last valid SlotIndex within a basic block, enabling correct live-out calculations.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions