Commit 4a2a6397 authored by Nikita Popov's avatar Nikita Popov
Browse files

[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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment