Revert "[InstCombine] Fix miscompile on GEP+load to icmp fold (PR45210)"
authorNathan Chancellor <nathan@kernel.org>
Tue, 1 Jun 2021 03:11:46 +0000 (20:11 -0700)
committerNathan Chancellor <nathan@kernel.org>
Tue, 1 Jun 2021 03:21:26 +0000 (20:21 -0700)
commite6b086bef2c0597ed14b2aefbb3f6d74b94fd49e
tree3bb88d5cd4f1536e0d385d2240d4fb8456779cb0
parent372237487e2494f37ad204b7a0eea3425d919e66
Revert "[InstCombine] Fix miscompile on GEP+load to icmp fold (PR45210)"

This reverts commit 4f2fd3818b0eb26806f366bc37369349aeedcaf9.

The Linux kernel fails to build after this commit. See
https://reviews.llvm.org/D99481 for a reproducer.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/load-cmp.ll