Skip to content

Commit 2cc56b6

Browse files
committed
Fix OnlyGISel condition
1 parent 66e79e2 commit 2cc56b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ let RecomputePerFunction = 1 in {
873873
def SLSBLRMitigation : Predicate<[{ MF->getSubtarget<AArch64Subtarget>().hardenSlsBlr() }]>;
874874
def NoSLSBLRMitigation : Predicate<[{ !MF->getSubtarget<AArch64Subtarget>().hardenSlsBlr() }]>;
875875

876-
def OnlyGISel : Predicate<"MF->getProperties().hasProperty(MachineFunctionProperties::Property::FailedISel) || MF->getProperties().hasProperty(MachineFunctionProperties::Property::Legalized)">;
876+
def OnlyGISel : Predicate<"!MF->getProperties().hasProperty(MachineFunctionProperties::Property::FailedISel) && MF->getProperties().hasProperty(MachineFunctionProperties::Property::Legalized)">;
877877
// Toggles patterns which aren't beneficial in GlobalISel when we aren't
878878
// optimizing. This allows us to selectively use patterns without impacting
879879
// SelectionDAG's behaviour.

0 commit comments

Comments
 (0)