llvm.org GIT mirror llvm / e50e528
[PGO] add target md5sum in warning message for icall Differential revision: http://reviews.llvm.org/D51193 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340657 91177308-0d34-0410-b5e6-96231b3b80d8 Xinliang David Li 1 year, 27 days ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
268268 LLVM_DEBUG(dbgs() << " Not promote: Cannot find the target\n");
269269 ORE.emit([&]() {
270270 return OptimizationRemarkMissed(DEBUG_TYPE, "UnableToFindTarget", Inst)
271 << "Cannot promote indirect call: target not found";
271 << "Cannot promote indirect call: target with md5sum "
272 << ore::NV("target md5sum", Target) << " not found";
272273 });
273274 break;
274275 }
11 ; RUN: opt < %s -passes=pgo-icall-prom -pass-remarks-missed=pgo-icall-prom -S 2>& 1 | FileCheck %s
22
33 ; CHECK: remark: :0:0: Cannot promote indirect call to func4 with count of 1234: The number of arguments mismatch
4 ; CHECK: remark: :0:0: Cannot promote indirect call: target not found
4 ; CHECK: remark: :0:0: Cannot promote indirect call: target with md5sum{{.*}} not found
55 ; CHECK: remark: :0:0: Cannot promote indirect call to func2 with count of 7890: Return type mismatch
66
77 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"