Select optimization for LLVM 3.3