[all-commits] [llvm/llvm-project] 3e48c8: [Assignment Tracking] Only set module flag if pass...
Orlando Cazalet-Hyams via All-commits
all-commits at lists.llvm.org
Wed Feb 22 08:58:21 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3e48c8d75d1ca937ab3595909fb4198226c4ad1d
https://github.com/llvm/llvm-project/commit/3e48c8d75d1ca937ab3595909fb4198226c4ad1d
Author: OCHyams <orlando.hyams at sony.com>
Date: 2023-02-22 (Wed, 22 Feb 2023)
Changed paths:
M llvm/include/llvm/IR/DebugInfo.h
M llvm/lib/IR/DebugInfo.cpp
A llvm/test/DebugInfo/Generic/assignment-tracking/declare-to-assign/set-flag-only-if-modified.ll
Log Message:
-----------
[Assignment Tracking] Only set module flag if pass modifies a function
The module flag "debug-info-assignment-tracking" is set by the
declare-to-assign pass to indicate that assignment tracking is enabled. This
patch changes declare-to-assign to only set the flag if it makes a
modification. This lets the compiler avoid doing extra work for no benefit,
such as is currently the case if assignment tracking is requested for a build
with line tables only (-gmlt) or a build without debug info.
Reviewed By: scott.linder
Differential Revision: https://reviews.llvm.org/D144481
More information about the All-commits
mailing list