mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 15:00:17 +02:00
RFCE: Remove unnecessary std::invoke()
We can just call this normally (and also make the constituent helper function internally linked).
This commit is contained in:
1 parent
12e8cf008a
commit
d2d0ef1803
1 file changed
+4
-4
@@ -196,7 +196,7 @@ unsigned DeadFlagCalculationEliminination::FlagsForCondClassType(CondClass Cond)
|
||||
}
|
||||
}
|
||||
|
||||
constexpr FlagInfo ClassifyConst(IROps Op) {
|
||||
static constexpr FlagInfo ClassifyConst(IROps Op) {
|
||||
switch (Op) {
|
||||
case OP_ANDWITHFLAGS:
|
||||
return FlagInfo::Pack({
|
||||
@@ -332,15 +332,15 @@ constexpr FlagInfo ClassifyConst(IROps Op) {
|
||||
}
|
||||
}
|
||||
|
||||
constexpr auto FlagInfos = std::invoke([] {
|
||||
constexpr auto FlagInfos = [] {
|
||||
std::array<FlagInfo, OP_LAST> ret = {};
|
||||
|
||||
for (unsigned i = 0; i < OP_LAST; ++i) {
|
||||
ret[i] = ClassifyConst((IROps)i);
|
||||
ret[i] = ClassifyConst(IROps(i));
|
||||
}
|
||||
|
||||
return ret;
|
||||
});
|
||||
}();
|
||||
|
||||
FlagInfo DeadFlagCalculationEliminination::Classify(IROp_Header* IROp) {
|
||||
FlagInfo Info = FlagInfos[IROp->Op];
|
||||
|
||||
Reference in new issue
Block a user