[all-commits] [llvm/llvm-project] 4a646c: [Instruction] Add updateLocationAfterHoist helper
Vedant Kumar via All-commits
all-commits at lists.llvm.org
Tue Aug 11 14:05:40 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4a646ca9e2caf70d6312714770f516fb83b7e3cb
https://github.com/llvm/llvm-project/commit/4a646ca9e2caf70d6312714770f516fb83b7e3cb
Author: Vedant Kumar <vsk at apple.com>
Date: 2020-08-11 (Tue, 11 Aug 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 updateLocationAfterHoist helper
Introduce a helper on Instruction which can be used to update the debug
location after hoisting.
Use this in GVN and LICM, where we were mistakenly introducing new line
0 locations after hoisting (the docs recommend dropping the location in
this case).
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