| ▲ | MobiusHorizons 12 hours ago | |||||||
I will admit I was initially surprised Matt was not already familiar with this behavior given his reputation. I remember discovering it while playing with llvm intermediate representation 10 years ago in college. I would never have considered myself very knowledgeable about modern compilers, and have never done any serious performance work. In that case it had solved a recursion to a simple multiplication, which completely surprised me. The fact that Matt did not know this makes me think this pass may only work on relatively trivial problems that he would never have written in the first place, and therefore never have witnessed the optimization. | ||||||||
| ▲ | pwdisswordfishy 12 hours ago | parent [-] | |||||||
He was: he brought up the very same example in a talk in 2017. | ||||||||
| ||||||||