Skip to content

Commit c1276e5

Browse files
committed
Preserve LiveDebugVariables
1 parent 471210b commit c1276e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "RISCV.h"
2828
#include "RISCVSubtarget.h"
2929
#include "llvm/ADT/Statistic.h"
30+
#include "llvm/CodeGen/LiveDebugVariables.h"
3031
#include "llvm/CodeGen/LiveIntervals.h"
3132
#include "llvm/CodeGen/LiveStacks.h"
3233
#include "llvm/CodeGen/MachineFunctionPass.h"
@@ -807,6 +808,7 @@ class RISCVCoalesceVSETVLI : public MachineFunctionPass {
807808
AU.addPreserved<LiveIntervals>();
808809
AU.addRequired<SlotIndexes>();
809810
AU.addPreserved<SlotIndexes>();
811+
AU.addPreserved<LiveDebugVariables>();
810812
AU.addPreserved<LiveStacks>();
811813

812814
MachineFunctionPass::getAnalysisUsage(AU);

0 commit comments

Comments
 (0)