[all-commits] [llvm/llvm-project] 368681: [GVNHoist] drop debug location according to the de...
Aditya Kumar via All-commits
all-commits at lists.llvm.org
Wed Mar 30 20:18:54 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 368681f803830f42c539fe37e753d8401a121454
https://github.com/llvm/llvm-project/commit/368681f803830f42c539fe37e753d8401a121454
Author: Aditya Kumar <1894981+hiraditya at users.noreply.github.com>
Date: 2022-03-30 (Wed, 30 Mar 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/GVNHoist.cpp
A llvm/test/Transforms/GVNHoist/hoist-drop-debug-info.ll
Log Message:
-----------
[GVNHoist] drop debug location according to the debug info guide
According to the LLVM debug info update guide: https://llvm.org/docs/HowToUpdateDebugInfo.html,
"Hoisting identical instructions which appear in several successor
blocks into a predecessor block. In this case there is no single
merged instruction. The rule for dropping locations applies".
Thanks to Yuanbo Li for reporting this.
Reviewed By: dblaikie
Reviewers: sebpop, tejohnson, dblaikie
Differential Revision: https://reviews.llvm.org/D122730
More information about the All-commits
mailing list