fellow compiler devs, in your opinion, how should a compiler optimize if (a == 99) b = 0; if (b == c) a = 99; to if (b == c) a = 99;
-
Show this thread
Replying to @rrika9
If you de-merge the control flow between the ifs: if (a == 99) { b = 0; if (b == c) a = 99; } else { if (b == c) a = 99; } Then standard optimization passes should be able to take it from there.
6:25 PM - 14 Dec 2020
0 replies
0 retweets
20 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.