(IIIT) Siddharth Bhat via llvm-dev
2017-Aug-16 22:39 UTC
[llvm-dev] Inst->replaceAllUsesWith and uses in ConstantExpr
Hello all,>From what I have observed, using `Inst->replaceAllUsesWith` does notreplace uses of the `Inst` in `ConstantExpr`s. Is there some way to have a universal replaceAllUsesWith? Thanks, ~Siddharth. -- Sending this from my phone, please excuse any typos! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170816/b32108f2/attachment.html>
Tim Northover via llvm-dev
2017-Aug-16 23:05 UTC
[llvm-dev] Inst->replaceAllUsesWith and uses in ConstantExpr
On 16 August 2017 at 15:39, (IIIT) Siddharth Bhat via llvm-dev <llvm-dev at lists.llvm.org> wrote:> From what I have observed, using `Inst->replaceAllUsesWith` does not replace > uses of the `Inst` in `ConstantExpr`s. Is there some way to have a universal > replaceAllUsesWith?Where are you seeing instructions used in ConstantExprs? That sounds really dodgy to me. Instructions are horribly non-Constant so I'd have thought it would be banned (even for technically plausible things like "and(i32 %inst, 0)"). Cheers. Tim.
(IIIT) Siddharth Bhat via llvm-dev
2017-Aug-17 00:01 UTC
[llvm-dev] Inst->replaceAllUsesWith and uses in ConstantExpr
Whoops, sorry, I meant "value->replaceAllUsesWith". Should I create a new post with an updated title? Thanks Siddharth On Thu 17 Aug, 2017, 01:05 Tim Northover <t.p.northover at gmail.com> wrote:> On 16 August 2017 at 15:39, (IIIT) Siddharth Bhat via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > From what I have observed, using `Inst->replaceAllUsesWith` does not > replace > > uses of the `Inst` in `ConstantExpr`s. Is there some way to have a > universal > > replaceAllUsesWith? > > Where are you seeing instructions used in ConstantExprs? That sounds > really dodgy to me. Instructions are horribly non-Constant so I'd have > thought it would be banned (even for technically plausible things like > "and(i32 %inst, 0)"). > > Cheers. > > Tim. >-- Sending this from my phone, please excuse any typos! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170817/f508e8b2/attachment.html>