<p dir="ltr">Whoops, sorry, I meant "value->replaceAllUsesWith".</p>
<p dir="ltr">Should I create a new post with an updated title?</p>
<p dir="ltr">Thanks <br>
Siddharth </p>
<br><div class="gmail_quote"><div dir="ltr">On Thu 17 Aug, 2017, 01:05 Tim Northover <<a href="mailto:t.p.northover@gmail.com">t.p.northover@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 16 August 2017 at 15:39, (IIIT) Siddharth Bhat via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
> From what I have observed, using `Inst->replaceAllUsesWith` does not replace<br>
> uses of the `Inst` in `ConstantExpr`s. Is there some way to have a universal<br>
> replaceAllUsesWith?<br>
<br>
Where are you seeing instructions used in ConstantExprs? That sounds<br>
really dodgy to me. Instructions are horribly non-Constant so I'd have<br>
thought it would be banned (even for technically plausible things like<br>
"and(i32 %inst, 0)").<br>
<br>
Cheers.<br>
<br>
Tim.<br>
</blockquote></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Sending this from my phone, please excuse any typos!</div></div>