[all-commits] [llvm/llvm-project] 65abca: [MLGO] Fix InlineAdvisor and ModelUnderTrainingRun...
Aiden Grossman via All-commits
all-commits at lists.llvm.org
Wed Nov 23 19:48:59 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 65abca4611256794176b791a1380ad83ccf0741f
https://github.com/llvm/llvm-project/commit/65abca4611256794176b791a1380ad83ccf0741f
Author: Aiden Grossman <agrossman154 at yahoo.com>
Date: 2022-11-24 (Thu, 24 Nov 2022)
Changed paths:
M llvm/lib/Analysis/InlineAdvisor.cpp
M llvm/lib/Analysis/ModelUnderTrainingRunner.cpp
Log Message:
-----------
[MLGO] Fix InlineAdvisor and ModelUnderTrainingRunner after hasValue removal
Recentlyin 4b6b248, llvm::Optional's hasValue method was removed as
described in
https://discourse.llvm.org/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor
This breaks InlineAdvisor and ModelUnderTrainingRunner. This patch fixes
them by changing the method to has_value, which hasValue was evaluating
to before.
Differential Revision: https://reviews.llvm.org/D138635
More information about the All-commits
mailing list