Revert "[InstCombineCalls] Use isKnownNonNullAt() to check nullness of passing argume...
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 11 Sep 2015 01:33:48 +0000 (01:33 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 11 Sep 2015 01:33:48 +0000 (01:33 +0000)
commit5db31461109dbf8e9a12a78e3128849461d1a2e2
tree81a766542ff64fa6b1991891074b260b0f506db1
parent8a15ef599ee153b335fa7916809fed5bb7c77fd8
Revert "[InstCombineCalls] Use isKnownNonNullAt() to check nullness of passing arguments at callsite"

This reverts commit r247356.

Breaks test/Transforms/InstCombine/pr8547.ll with:

Wrong types for attribute: byval inalloca nest noalias nocapture nonnull readnone readonly sret dereferenceable(1) dereferenceable_or_null(1)
  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 nonnull %conv2) #0
LLVM ERROR: Broken function found, compilation aborted!

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247371 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/call_nonnull_arg.ll [deleted file]