[PATCH] D85670: [Instruction] Add updateLocationAfterHoist helper

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 15:39:16 PDT 2020


vsk updated this revision to Diff 284921.
vsk added a comment.

Preserve the inlinedAt location unless the parent function has a scope.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85670/new/

https://reviews.llvm.org/D85670

Files:
  llvm/include/llvm/IR/Instruction.h
  llvm/lib/IR/DebugInfo.cpp
  llvm/lib/Transforms/Scalar/GVN.cpp
  llvm/lib/Transforms/Scalar/LICM.cpp
  llvm/test/DebugInfo/Generic/licm-hoist-debug-loc.ll
  llvm/test/Transforms/GVN/PRE/phi-translate.ll
  llvm/test/Transforms/LICM/hoisting-preheader-debugloc.ll
  llvm/unittests/IR/InstructionsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85670.284921.patch
Type: text/x-patch
Size: 9588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/1f4a0a86/attachment.bin>


More information about the llvm-commits mailing list