[InstCombine] Relax one-use check for icmp of gep fold
Instead of checking whether the GEP as a whole is constant, only check whether it has constant incides. This matches what we do in other places in this code. This has little practical impact, because it is mostly already handled through other cases anyway. We see a difference for non-inbounds equality comparisons.
parent
cf029a22
Please register or sign in to comment