[all-commits] [llvm/llvm-project] ea60ff: [NFC] Return unique dbg intrinsics from findDbgVal...
Orlando Cazalet-Hyams via All-commits
all-commits at lists.llvm.org
Thu Apr 20 06:19:57 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ea60ffc6d156e5205324349dc520f59fe7500714
https://github.com/llvm/llvm-project/commit/ea60ffc6d156e5205324349dc520f59fe7500714
Author: OCHyams <orlando.hyams at sony.com>
Date: 2023-04-20 (Thu, 20 Apr 2023)
Changed paths:
M llvm/lib/IR/DebugInfo.cpp
M llvm/unittests/Transforms/Utils/LocalTest.cpp
Log Message:
-----------
[NFC] Return unique dbg intrinsics from findDbgValues and findDbgUsers
The out-param vector from findDbgValues and findDbgUsers should not include
duplicates, which is possible if the debug intrinsic uses the value multiple
times. This filter is already in place for multiple uses in a `DIArgLists`;
extend it to cover dbg.assigns too because a Value may be used in both the
address and value components.
Additionally, refactor the duplicated functionality between findDbgValues and
FindDbgUsers into a new function findDbgIntrinsics.
Reviewed By: jmorse, StephenTozer
Differential Revision: https://reviews.llvm.org/D148788
More information about the All-commits
mailing list