aturetsk added a comment. I'm going to investigate the compile time issue and try to find ways to improve pass's speed. In the worst case we can just skip LEA optimization for big basic blocks, that should keep compile time from blowing up. http://reviews.llvm.org/D15573