[CallSiteSplit] Make sure we remove nonnull if the parameter turns out to be a constant.
authorXin Tong <trent.xin.tong@gmail.com>
Mon, 23 Apr 2018 20:09:08 +0000 (20:09 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Mon, 23 Apr 2018 20:09:08 +0000 (20:09 +0000)
commit8edff279236dcea52c7a716b09562e2f47fe093a
tree1da924c12a302972313943e7fd420871d4e62d6e
parent1a2ce572bf61bd7139b92e2d8e2dbabfdfa52aa2
[CallSiteSplit] Make sure we remove nonnull if the parameter turns out to be a constant.

Summary: We do not need nonull attribute if we know an argument is going to be constant.

Reviewers: junbuml, davide, fhahn

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D45608

llvm-svn: 330641
llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp
llvm/test/Transforms/CallSiteSplitting/callsite-split-or-phi.ll