[all-commits] [llvm/llvm-project] eaab1b: [StackColoring] Remap FixedStackPseudoSourceValue ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jan 19 22:54:08 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: eaab1bf21e1d6803fd217fe6052537fc33b06837
      https://github.com/llvm/llvm-project/commit/eaab1bf21e1d6803fd217fe6052537fc33b06837
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-01-19 (Sun, 19 Jan 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/PseudoSourceValue.h
    M llvm/lib/CodeGen/StackColoring.cpp
    A llvm/test/CodeGen/PowerPC/stack-coloring-vararg.mir

  Log Message:
  -----------
  [StackColoring] Remap FixedStackPseudoSourceValue frame index referenced by MachineMemOperand

StackColoring::remapInstructions() remaps MachineOperand frame index (e.g. %stack.1 -> %stack.0)
but does not remap FixedStackPseudoSourceValue frame index (e.g. store 4 into %stack.1.ap2.i.i)
referenced by MachineMemoryOperand.

This can cause an assertion failure when LiveDebugValues references a dead stack object.

It is difficult to craft a test case. -g, va_copy and stack-coloring are required.
I can only reproduce it on ppc32.




More information about the All-commits mailing list