[llvm] Add some micro optimizations to the LLVM/AOT code.