aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2023-10-11 10:32:05 +0100
committerJay Foad <jay.foad@amd.com>2023-10-11 10:33:52 +0100
commit05c16f40c9de93c181d45ec718de5487380f0514 (patch)
treecffa576858bd3c2e4aab64d1a080e07eba6f8893 /llvm/lib/CodeGen/VirtRegMap.cpp
parentfa5884770ab240139f33a8b2be801673ca21b9c0 (diff)
downloadllvm-05c16f40c9de93c181d45ec718de5487380f0514.zip
llvm-05c16f40c9de93c181d45ec718de5487380f0514.tar.gz
llvm-05c16f40c9de93c181d45ec718de5487380f0514.tar.bz2
[VirtRegMap] Simplify condition after #65729
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
-rw-r--r--llvm/lib/CodeGen/VirtRegMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index 6e29a41..5bdd86a 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/lib/CodeGen/VirtRegMap.cpp
@@ -275,7 +275,7 @@ bool VirtRegRewriter::runOnMachineFunction(MachineFunction &fn) {
// Rewrite virtual registers.
rewrite();
- if (DebugVars && ClearVirtRegs) {
+ if (ClearVirtRegs) {
// Write out new DBG_VALUE instructions.
// We only do this if ClearVirtRegs is specified since this should be the