Florian Hahn via llvm-dev
2020-Jul-27 10:40 UTC
[llvm-dev] Removing IPConstantPropagation.cpp
Hi, As far as I know, the ipconstprop pass has not been actively used in years and ipsccp has been used instead. This has the potential for confusion and sometimes leads people to spend time finding & reporting bugs as well as updating it to work with the latest API changes. If there are people actively using it, I would love to hear. If no-ones using it, I’d propose to remove the dead code: https://reviews.llvm.org/D84447 Cheers, Florian
Johannes Doerfert via llvm-dev
2020-Jul-27 13:28 UTC
[llvm-dev] Removing IPConstantPropagation.cpp
On 7/27/20 5:40 AM, Florian Hahn via llvm-dev wrote:> Hi, > > As far as I know, the ipconstprop pass has not been actively used in years and ipsccp has been used instead. This has the potential for confusion and sometimes leads people to spend time finding & reporting bugs as well as updating it to work with the latest API changes. > > If there are people actively using it, I would love to hear. > > If no-ones using it, I’d propose to remove the dead code: https://reviews.llvm.org/D84447+1 for removal> Cheers, > Florian > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Ehud Katz via llvm-dev
2020-Jul-27 16:15 UTC
[llvm-dev] Removing IPConstantPropagation.cpp
I don't know this pass very well, but may I ask, why isn't it used? I mean, is this transformation already implemented as part of another (used)? On Mon, 27 Jul 2020 at 16:30 Johannes Doerfert via llvm-dev < llvm-dev at lists.llvm.org> wrote:> > On 7/27/20 5:40 AM, Florian Hahn via llvm-dev wrote: > > Hi, > > > > As far as I know, the ipconstprop pass has not been actively used in > years and ipsccp has been used instead. This has the potential for > confusion and sometimes leads people to spend time finding & reporting bugs > as well as updating it to work with the latest API changes. > > > > If there are people actively using it, I would love to hear. > > > > If no-ones using it, I’d propose to remove the dead code: > https://reviews.llvm.org/D84447 > > +1 for removal > > > > > Cheers, > > Florian > > _______________________________________________ > > LLVM Developers mailing list > > llvm-dev at lists.llvm.org > > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200727/0d0c31ef/attachment.html>
Chris Lattner via llvm-dev
2020-Jul-28 01:01 UTC
[llvm-dev] Removing IPConstantPropagation.cpp
I’m ok removing it. The only utility I can see is as a simple interprocedural pass for teaching people. I’m not sure that it is the best thing to use for that. -Chris> On Jul 27, 2020, at 3:40 AM, Florian Hahn via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi, > > As far as I know, the ipconstprop pass has not been actively used in years and ipsccp has been used instead. This has the potential for confusion and sometimes leads people to spend time finding & reporting bugs as well as updating it to work with the latest API changes. > > If there are people actively using it, I would love to hear. > > If no-ones using it, I’d propose to remove the dead code: https://reviews.llvm.org/D84447 > > Cheers, > Florian > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Arthur Eubanks via llvm-dev
2020-Jul-28 01:11 UTC
[llvm-dev] Removing IPConstantPropagation.cpp
Should ConstantProp.cpp also be removed? It doesn't look like it's been worked on in over 10 years, and aside from check-llvm lit tests, the only use is in llvm/unittests/ExecutionEngine/MCJIT/MCJITAPITest.cpp via LLVMAddConstantPropagationPass. (it hasn't been ported to the new pass manager which is why I'm asking) On Mon, Jul 27, 2020 at 6:01 PM Chris Lattner via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I’m ok removing it. The only utility I can see is as a simple > interprocedural pass for teaching people. I’m not sure that it is the best > thing to use for that. > > -Chris > > > On Jul 27, 2020, at 3:40 AM, Florian Hahn via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > Hi, > > > > As far as I know, the ipconstprop pass has not been actively used in > years and ipsccp has been used instead. This has the potential for > confusion and sometimes leads people to spend time finding & reporting bugs > as well as updating it to work with the latest API changes. > > > > If there are people actively using it, I would love to hear. > > > > If no-ones using it, I’d propose to remove the dead code: > https://reviews.llvm.org/D84447 > > > > Cheers, > > Florian > > _______________________________________________ > > LLVM Developers mailing list > > llvm-dev at lists.llvm.org > > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200727/d1736899/attachment-0001.html>
Florian Hahn via llvm-dev
2020-Jul-28 12:02 UTC
[llvm-dev] Removing IPConstantPropagation.cpp
> On Jul 28, 2020, at 02:01, Chris Lattner <clattner at nondot.org> wrote: > > I’m ok removing it. The only utility I can see is as a simple interprocedural pass for teaching people. I’m not sure that it is the best thing to use for that.Agreed, it has the potential for a relatively simple IPO example pass. I think it would need some accompanying material and if anyone is interested in using it as an example, it should be easy enough to restore the code and move it to llvm/examples. Cheers, Florian