<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am introducing you to a new LLVM MIR Pass that removes redundant DBG_VALUEs that the LiveDebugVariables Pass may insert after the virtual register rewriting. It has been implemented as <a href="https://reviews.llvm.org/D105279" id="LPlnk297659">https://reviews.llvm.org/D105279</a>.
A similar Pass exists on the LLVM IR level (<a href="https://reviews.llvm.org/D71478" id="LPlnk865925">https://reviews.llvm.org/D71478</a>). This new Pass is being placed right after the register allocator, but if we find some other place in the pipeline this
could be useful, we can invoke it there as well.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
On the gdb-7.11 build (used as a testbed with -g -O2), the RemoveRedundantDebugValues removed 15032 instructions, according to the LLVM statistics.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The review process is almost done, so any thoughts on this?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best,
<div>Djordje</div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>