[LoopUnroll] Use undef for phis with no value live
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 1 Jul 2015 05:38:07 +0000 (05:38 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 1 Jul 2015 05:38:07 +0000 (05:38 +0000)
commit787b9b4e95de4be493f0b45fb6ce23dafaf2002d
treed193e3ef51476e4f47a16bc2272dd6d56eb347ad
parent284c49c36faea2f813f66d9ddf861a45a2a4c422
[LoopUnroll] Use undef for phis with no value live

We would create a phi node with a zero initialized operand instead of
undef in the case where no value was originally available.  This was
problematic for x86_mmx which has no null value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopUnrollRuntime.cpp
test/Transforms/LoopUnroll/X86/mmx.ll [new file with mode: 0644]