[SCCP] Turn loads of null into undef instead of zero initialized values
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 1 Jul 2015 05:37:57 +0000 (05:37 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 1 Jul 2015 05:37:57 +0000 (05:37 +0000)
commit284c49c36faea2f813f66d9ddf861a45a2a4c422
tree39ccef9e9d4de6c047ebd1609b38d3ef4a9838aa
parent4015c5e2e49bbc3cc289afc48bc962df4fc257a9
[SCCP] Turn loads of null into undef instead of zero initialized values

Surprisingly, this is a correctness issue: the mmx type exists for
calling convention purposes, LLVM doesn't have a zero representation for
them.

This partially fixes PR23999.

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