[PATCH] D59417: [GVN] Add default debug location when constructing PHI nodes

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 11:59:59 PDT 2019


probinson added a comment.

Aren't phis *always* at the start of a block?
If that's the case, I'm tempted to say phis should be allowed to have no source location, and we should fix the debugify verifier accordingly.  Sometimes a phi does have an appropriate source location, which is fine.  I supposed sometimes a phi ought to have a real location, but doesn't, and the verifier will stop helping us to find those cases; but it will save a bit of memory not to attach source locations to every phi in the world, and have no practical effect on the final line table (because those will turn into line-0 anyway).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59417/new/

https://reviews.llvm.org/D59417





More information about the llvm-commits mailing list