Skip to content

broadcom/compiler: Avoid generating code to convert conditions to booleans and back

This change keeps track of when a boolean temp is loaded into the flags by a comparison instruction and uses that information to skip emitting instructions to set the flags in ntq_emit_bool_to_cond when the flags already have the right contents.

This is an improved version of my better-ifs MR, and is split into two patches to ease review, as the first is just a refactor.

Merge request reports