[all-commits] [llvm/llvm-project] dfc5a9: [Instruction] Add dropLocation and updateLocationA...
Vedant Kumar via All-commits
all-commits at lists.llvm.org
Thu Sep 24 15:00:25 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: dfc5a9eb57aaaac972764bf731503419284bd3dc
https://github.com/llvm/llvm-project/commit/dfc5a9eb57aaaac972764bf731503419284bd3dc
Author: Vedant Kumar <vsk at apple.com>
Date: 2020-09-24 (Thu, 24 Sep 2020)
Changed paths:
M llvm/include/llvm/IR/Instruction.h
M llvm/lib/IR/DebugInfo.cpp
M llvm/lib/Transforms/Scalar/GVN.cpp
M llvm/lib/Transforms/Scalar/LICM.cpp
M llvm/test/DebugInfo/Generic/licm-hoist-debug-loc.ll
M llvm/test/Transforms/GVN/PRE/phi-translate.ll
M llvm/test/Transforms/LICM/hoisting-preheader-debugloc.ll
M llvm/unittests/IR/InstructionsTest.cpp
Log Message:
-----------
[Instruction] Add dropLocation and updateLocationAfterHoist helpers
Introduce a helper which can be used to update the debug location of an
Instruction after the instruction is hoisted. This can be used to safely
drop a source location as recommended by the docs.
For more context, see the discussion in https://reviews.llvm.org/D60913.
Differential Revision: https://reviews.llvm.org/D85670
More information about the All-commits
mailing list