Skip to content

Commit 0a92d90

Browse files
committed
Preserve LiveDebugVariables
1 parent c9c2480 commit 0a92d90

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"
@@ -802,6 +803,7 @@ class RISCVCoalesceVSETVLI : public MachineFunctionPass {
802803
AU.addPreserved<LiveIntervals>();
803804
AU.addRequired<SlotIndexes>();
804805
AU.addPreserved<SlotIndexes>();
806+
AU.addPreserved<LiveDebugVariables>();
805807
AU.addPreserved<LiveStacks>();
806808

807809
MachineFunctionPass::getAnalysisUsage(AU);

0 commit comments

Comments
 (0)