As noted in D99845, there is a worklist already but we do recursion
because other values change. This tracks them in the worklist and
removes the recursion.
Details
- Reviewers
fhahn arsenm bollu lebedev.ri
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/IPO/GlobalOpt.cpp | ||
---|---|---|
336–339 | We need to track hopefully-dead-in-the-end instrs in some vector, and delete them if they are unused. |
llvm/lib/Transforms/IPO/GlobalOpt.cpp | ||
---|---|---|
336–339 | Not totally sure what you want me to do. TBH, I thought this would help me but it turns out some dead-constant user that are floating around prevent my global array from ever making it this far. I'll clean up my Attributor code and get rid of my global arrays. Also need to do some value prop through another one that is not picked up IPSCCP, so might be worth to find a wholesome solution. | |
384 | This return true is wrong now. |
llvm/lib/Transforms/IPO/GlobalOpt.cpp | ||
---|---|---|
336–339 | Previously, CE would not have users by now because we recursed, |