[all-commits] [llvm/llvm-project] df7606: [DebugInfo][LICM] Drop DebugLoc from IntrinsicInst...

Juan Manuel Martinez Caamaño via All-commits all-commits at lists.llvm.org
Fri Sep 30 02:25:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df7606a066b75ce55ae4a186c785f996e0985db1
      https://github.com/llvm/llvm-project/commit/df7606a066b75ce55ae4a186c785f996e0985db1
  Author: Juan Manuel MARTINEZ CAAMAÑO <juamarti at amd.com>
  Date:   2022-09-30 (Fri, 30 Sep 2022)

  Changed paths:
    M llvm/lib/IR/DebugInfo.cpp
    A llvm/test/DebugInfo/Generic/licm-hoist-intrinsic-debug-loc.ll

  Log Message:
  -----------
  [DebugInfo][LICM] Drop DebugLoc from IntrinsicInst when hoisting

The DebugLoc is conserved when hoisting function calls, to ensure the
DIScope is preserved if inlining occurs.

This commit drops the DebugLoc in the case the call is an intrinsic
call that won't be lowered into a function call.

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




More information about the All-commits mailing list