logoalt Hacker News

JoshTriplettyesterday at 5:58 PM1 replyview on HN

I was utterly unconvinced that the original infinite-loop UB gave the compiler any important performance optimization, and I'm unconvinced that this is providing useful value to compensate for its surprise. If I wanted a yield in my infinite loop, I'd add one.


Replies

mitxelatoday at 12:36 AM

The original UB was to allow the compiler to merge two loops without proving termination.