[all-commits] [llvm/llvm-project] 79f46a: Have stripDebugInfo() also strip !llvm.loop annota...

adrian-prantl via All-commits all-commits at lists.llvm.org
Fri Feb 5 17:23:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79f46a30c2c4af7f7e6ef3d691505ade19465e52
      https://github.com/llvm/llvm-project/commit/79f46a30c2c4af7f7e6ef3d691505ade19465e52
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M llvm/lib/IR/DebugInfo.cpp
    A llvm/test/Verifier/llvm.loop-cu-strip.ll

  Log Message:
  -----------
  Have stripDebugInfo() also strip !llvm.loop annotations from all
instructions.

The !llvm.loop annotations consist of pointers into the debug info, so
when stripping the debug info (particularly important when it is
malformed!) !llvm.loop annotations need to be stripped as well, or
else the malformed debug info stays around.  This patch applies the
stripping to all instructions, not just terminator instructions.

rdar://73687049

Differential Revision: https://reviews.llvm.org/D96181




More information about the All-commits mailing list