Investigate and improve interrupt flag codegen #2987
Labels
performance
Performance seems to be not as good as it could be
peripheral:interrupt
Interrupt peripheral(s)
Based on #2960 we might have some work to do - for one, we should change the other drivers as well. But we could also look into why EnumSet doesn't optimize well, too.
Ideally, if we could coerce the interrupt flag enums to use discriminants equal to their corresponding bit values (which only works if the flags are in a single register, and may be device dependent), theoretically the codegen could just be as little as read-and-mask. Can we somehow achieve that?
The text was updated successfully, but these errors were encountered: