This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Fix scheduler crash in fusion code.
ClosedPublic

Authored by efriedma on Oct 19 2022, 2:55 PM.

Details

Summary

Make sure we don't call getReg() on the first operand of instruction without knowing that operand is actually a register.

(This codepath isn't enabled for most CPUs; only triggers on certain CPUs, like Cortex-X1.)

Diff Detail

Event Timeline

efriedma created this revision.Oct 19 2022, 2:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2022, 2:55 PM
efriedma requested review of this revision.Oct 19 2022, 2:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2022, 2:55 PM
dmgreen accepted this revision.Oct 20 2022, 12:17 AM

LGTM. I had not realized so many cores used FeatureCmpBccFusion. The performance of that hasn't been great when I've tried it in the past.

This revision is now accepted and ready to land.Oct 20 2022, 12:17 AM
This revision was automatically updated to reflect the committed changes.