[PATCH] D134429: [DebugInfo][LICM] Drop DebugLoc from IntrinsicInst when hoisting
Juan Manuel Martinez CaamaƱo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 22 05:20:29 PDT 2022
jmmartinez created this revision.
Herald added subscribers: asbirlea, hiraditya.
Herald added a project: All.
jmmartinez requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134429
Files:
llvm/lib/IR/DebugInfo.cpp
llvm/test/DebugInfo/Generic/licm-hoist-intrinsic-debug-loc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134429.462145.patch
Type: text/x-patch
Size: 4856 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220922/1348296b/attachment.bin>
More information about the llvm-commits
mailing list