OSDN Git Service

[SCCP] Partially propagate informations when the input is not fully defined.
authorDavide Italiano <davide@freebsd.org>
Tue, 10 May 2016 19:49:47 +0000 (19:49 +0000)
committerDavide Italiano <davide@freebsd.org>
Tue, 10 May 2016 19:49:47 +0000 (19:49 +0000)
commit5f206cf7b0203c1c9d3d71838f3f4579864bf985
tree6156f4ca8a23e40dd5a99e92a25ac0fd8049bd40
parent9e1d5770bfab66d61e7b73ccd874b5d7b2b067ea
[SCCP] Partially propagate informations when the input is not fully defined.

With this patch:
%r1 = lshr i64 -1, 4294967296 -> undef

Before this patch:
%r1 = lshr i64 -1, 4294967296 -> 0

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269105 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SCCP.cpp
test/Transforms/ConstProp/shift.ll