diff options
author | Haohai Wen <haohai.wen@intel.com> | 2023-09-21 10:30:39 +0800 |
---|---|---|
committer | Haohai Wen <haohai.wen@intel.com> | 2023-09-21 10:30:39 +0800 |
commit | 486fc8158384d1c6758e5f9b856fc91606dab151 (patch) | |
tree | add03b885daee462791b68ee1b64183d38de4da4 /llvm/lib/Analysis/InlineCost.cpp | |
parent | cbd45961684766dd3b1aaa7dcdd35ea3aafe360a (diff) | |
download | llvm-486fc8158384d1c6758e5f9b856fc91606dab151.zip llvm-486fc8158384d1c6758e5f9b856fc91606dab151.tar.gz llvm-486fc8158384d1c6758e5f9b856fc91606dab151.tar.bz2 |
Revert "[InlineCost] Enable the cost benefit analysis for Sample PGO (#66457)"
This reverts commit 2f2319cf2406d9830a331cbf015881c55ae78806.
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
-rw-r--r-- | llvm/lib/Analysis/InlineCost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp index f5a31628..71d35ad 100644 --- a/llvm/lib/Analysis/InlineCost.cpp +++ b/llvm/lib/Analysis/InlineCost.cpp @@ -787,7 +787,7 @@ class InlineCostCallAnalyzer final : public CallAnalyzer { return false; } else { // Otherwise, require instrumentation profile. - if (!(PSI->hasInstrumentationProfile() || PSI->hasSampleProfile())) + if (!PSI->hasInstrumentationProfile()) return false; } |