merged from llvm-3.2 branch: Handle inbounds GEPs which turn out to be constant.