OSDN Git Service

Subzero: Make liveness validation errors easier to interpret.
authorJim Stichnoth <stichnot@chromium.org>
Tue, 21 Jun 2016 18:22:17 +0000 (11:22 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Tue, 21 Jun 2016 18:22:17 +0000 (11:22 -0700)
commit2943d77ca2b3c2380f34b674960f92264c473360
tree687c75a07791850d9747ca0ed64591ba84cd8b75
parentc577727f49d6f4ccdbf40e9fa527cf1c97f23a7a
Subzero: Make liveness validation errors easier to interpret.

A portion of the translation workflow goes like this:

  dump #1
  renumber instructions
  liveness + live range construction
  validateLiveness (exit on failure)
  dump #2

If there are liveness validation errors, instruction numbers are reported with respect to the new instruction numbers, yet the most recent dump output is with respect to the old instruction numbers.  Confusion ensues.

To fix this, we just do dump #2 before validateLiveness.

BUG= none
R=jpp@chromium.org

Review URL: https://codereview.chromium.org/2080633004 .
src/IceTargetLoweringARM32.cpp
src/IceTargetLoweringX86BaseImpl.h