[PATCH v2] Add if-chain to switch conversion pass.

Martin Liška mliska@suse.cz
Wed Nov 18 12:25:43 GMT 2020


On 11/16/20 1:21 PM, Richard Biener wrote:
> but the most trivial thing would be to feed the pass the
> balanced-tree generated by switch expansion where I
> would expect us to be able to detect it as the original switch again.

Well, if we want to support such matching, then please deffer it to a phase 2.
I don't see it a common pattern that people write such a code in wild.

Right now, we have some local analysis and one can eventually build a more advanced
algorithm on top of it. Can we please make a progress for GCC 11 with the current
approach that will cover quite some interesting if-chains?

Thanks,
Martin


More information about the Gcc-patches mailing list