Removing dead constants should not count as making a change to the
module. This means that RemoveUnusedGlobalValue simplifies to just
calling removeDeadConstantUsers, so inline it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
TBH I'm not even sure that any of these calls to removeDeadConstantUsers are required. Nothing seems to fail if I remove them. But I kept them for now to keep this patch conservative.
Comment Actions
Yeah, better keep this conservative, and this patch looks good. If you're brave you could try to craft an extra .ll that have multiple constant users and see if the algorithm can get rid of them without the calls to removeDeadConstantUsers.