diff options
| author | William G Hatch <william@hatch.uno> | 2024-10-08 19:38:47 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-08 19:38:47 -0600 |
| commit | 181840459d2c8841ab8a564d4fbac6efc65e0fa9 (patch) | |
| tree | bd01b75927f65a5c9eaac4f2f1b8beefb44a68f6 /llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp | |
| parent | ff6facaa61d9bd58ec375be80fc725b2bb6fbadf (diff) | |
[LiveDebugValues][NVPTX]VarLocBasedImpl handle vregs, enable for NVPTX (#111456)
This patch handles virtual registers in the VarLocBasedImpl of the
LiveDebugVariables pass, allowing it to be used on architectures that
depend on virtual registers in debugging, like NVPTX. It enables the
pass for NVPTX.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp index 0c0a4e13c7c9..a2b166227194 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp @@ -102,14 +102,6 @@ LiveDebugValues::LiveDebugValues() : MachineFunctionPass(ID) { } bool LiveDebugValues::runOnMachineFunction(MachineFunction &MF) { - // Except for Wasm, all targets should be only using physical register at this - // point. Wasm only use virtual registers throught its pipeline, but its - // virtual registers don't participate in this LiveDebugValues analysis; only - // its target indices do. - assert(MF.getTarget().getTargetTriple().isWasm() || - MF.getProperties().hasProperty( - MachineFunctionProperties::Property::NoVRegs)); - bool InstrRefBased = MF.useDebugInstrRef(); // Allow the user to force selection of InstrRef LDV. InstrRefBased |= ForceInstrRefLDV; |
