[all-commits] [llvm/llvm-project] 32cb3c: [NFC][LLVM][CodeGen] Move LiveDebugVariables.h int...
Piyou Chen via All-commits
all-commits at lists.llvm.org
Mon Apr 15 06:59:20 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 32cb3c55080eec70abf282fbe75e6a58cf76f92a
https://github.com/llvm/llvm-project/commit/32cb3c55080eec70abf282fbe75e6a58cf76f92a
Author: Piyou Chen <piyou.chen at sifive.com>
Date: 2024-04-15 (Mon, 15 Apr 2024)
Changed paths:
A llvm/include/llvm/CodeGen/LiveDebugVariables.h
M llvm/lib/CodeGen/LiveDebugVariables.cpp
R llvm/lib/CodeGen/LiveDebugVariables.h
M llvm/lib/CodeGen/RegAllocBasic.cpp
M llvm/lib/CodeGen/RegAllocGreedy.cpp
M llvm/lib/CodeGen/VirtRegMap.cpp
Log Message:
-----------
[NFC][LLVM][CodeGen] Move LiveDebugVariables.h into llvm/include/llvm/CodeGen (#88374)
This patch make `LiveDebugVariables` can be used by passes outside of
`lib/CodeGen`.
If we run a pass that occurs between the split register allocation pass
without preserving this pass, it will be freed and recomputed until it
encounters the next pass that needs LiveDebugVariables.
However, `LiveDebugVariables` will raise an assertion due to the pass
being freed without emitting a debug value.
This is reason we need `LiveDebugVariables` to be available for passes
outside of lib/Codegen.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list