[LVI][CVP] Treat undef like a full range (#68190)
authorDianQK <dianqk@dianqk.net>
Tue, 10 Oct 2023 08:03:24 +0000 (16:03 +0800)
committerTobias Hieta <tobias@hieta.se>
Mon, 16 Oct 2023 08:14:49 +0000 (10:14 +0200)
commitd10b731adcc8874f67d097e032b04ebc7c2e3619
tree3970e3ad2febf8d2c7ff0d410f6d95e77c48e120
parent37b79e779f447f1c714af7f907e7a2ec846d1da0
[LVI][CVP] Treat undef like a full range (#68190)

When converting to ConstantRange, we should treat undef like a full range.
Fixes #68381.

(cherry picked from commit 81857940f278e21f7957a2833d4b6ec72819e79f)
llvm/lib/Analysis/LazyValueInfo.cpp
llvm/test/Transforms/CorrelatedValuePropagation/merge-range-and-undef.ll