[PATCH] D45637: [DebugInfo] Ignore DBG_VALUE instructions in PostRA Machine Sink

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 12:31:09 PDT 2018


probinson added a comment.

In https://reviews.llvm.org/D45637#1138063, @aprantl wrote:

> If we were to reorder the instruction stream so that the two intrinsics are swapped, it will look like the value of p is NULL throughout the rest of the program.


Ah!  We don't want to move a value intrinsic across another one for the *same* *variable* hmmm.
That feels like one of the stores would be dead?  I'm not sure what we'd want the debug info to look like in that case.


https://reviews.llvm.org/D45637





More information about the llvm-commits mailing list