Make Phi cleanups consistent: remove self as a trivial Phi and
recurse to potentially remove other trivial phis.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 37054 Build 37053: arc lint + arc unit
Event Timeline
Comment Actions
Assuming the test in D66495 (in part) covers this, LGTM with an optional nit.
Thanks!
lib/Analysis/MemorySSAUpdater.cpp | ||
---|---|---|
494 | do we have many more calls like this laying around? if so, would it be good to add a super simple overload that just takes a MPhi, asserts it's non-null, and expands to tryRemoveTrivialPhi(MPhi, MPhi->operands());? |
do we have many more calls like this laying around?
if so, would it be good to add a super simple overload that just takes a MPhi, asserts it's non-null, and expands to tryRemoveTrivialPhi(MPhi, MPhi->operands());?