We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b1b13b commit cf2ff04Copy full SHA for cf2ff04
llvm/lib/CodeGen/MIRParser/MIRParser.cpp
@@ -406,11 +406,13 @@ bool MIRParserImpl::computeFunctionProperties(
406
auto ComputedPropertyHelper =
407
[&Properties](std::optional<bool> ExplicitProp, bool ComputedProp,
408
MachineFunctionProperties::Property P) -> bool {
409
+ // Prefer explicitly given values over the computed properties
410
if (ExplicitProp.value_or(ComputedProp))
411
Properties.set(P);
412
else
413
Properties.reset(P);
-
414
+
415
+ // Check for conflict between the explicit values and the computed ones
416
return ExplicitProp && *ExplicitProp && !ComputedProp;
417
};
418
0 commit comments