Skip to content

Commit 5ffffed

Browse files
committed
Take over and fix comments
1 parent 2967a20 commit 5ffffed

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

llvm/include/llvm/Transforms/IPO/Attributor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ struct AttributorConfig {
14481448
/// Callback function to determine if an indirect call targets should be made
14491449
/// direct call targets (with an if-cascade).
14501450
std::function<bool(Attributor &A, const AbstractAttribute &AA, CallBase &CB,
1451-
Function &AssummedCallee, unsigned NumCallees)>
1451+
Function &AssumedCallee, unsigned NumCallees)>
14521452
IndirectCalleeSpecializationCallback = nullptr;
14531453

14541454
/// Helper to update an underlying call graph and to delete functions.

llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,6 @@ static bool runImpl(Module &M, AnalysisGetter &AG, TargetMachine &TM,
10641064
AC.Allowed = &Allowed;
10651065
AC.IsModulePass = true;
10661066
AC.DefaultInitializeLiveInternals = false;
1067-
errs() << "HasWholeProgramVisibility " << HasWholeProgramVisibility << "\n";
10681067
AC.IsClosedWorldModule = HasWholeProgramVisibility;
10691068
AC.IndirectCalleeSpecializationCallback =
10701069
IndirectCalleeSpecializationCallback;

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
738738
[this](ModulePassManager &PM, OptimizationLevel Level) {
739739
if (Level != OptimizationLevel::O0)
740740
PM.addPass(
741-
AMDGPUAttributorPass(*this, /*HasWholeProgramVisibility*/ true));
741+
AMDGPUAttributorPass(*this, /*HasWholeProgramVisibility=*/true));
742742
// We want to support the -lto-partitions=N option as "best effort".
743743
// For that, we need to lower LDS earlier in the pipeline before the
744744
// module is partitioned for codegen.

0 commit comments

Comments
 (0)