[PATCH] D38088: Fix out-of-order stepping behavior in programs with hoisted constants.

Matthew Voss via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 10:46:00 PDT 2017


ormris added a comment.

When the Constant Hoisting pass moves expensive constants into a common block,
it assignes a debug location equal to the last use of that constant. While this
is certainly intuitive, it places the constant in an out-of-order location,
according to the debug location information. This produces out-of-order
stepping when debugging programs effected by this pass.

This patch creates in-order stepping behavior by removing the debug location
information from hoisted constants.


https://reviews.llvm.org/D38088





More information about the llvm-commits mailing list