In case anyone thought ICC was a real production-use compiler...https://godbolt.org/g/tBzQrJ
-
-
-
Replying to @stephentyrone @RichFelker
I was actually curious enough to do a bit of code archaeology. Two separate optimizations in play: (a) "-1-x --> ~x", and (b) "~(~x >> y) --> x >> y". LLVM has (a) since 2003 (r5587!), seemingly because
@clattner_llvm felt like it, and (b) was contributed in 2010 (r93884).2 replies 0 retweets 3 likes
(a) isn't portable at the source level or you could just write it that way.
5:24 AM - 11 Aug 2018
0 replies
0 retweets
0 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.