ConstantFold: an undef shift amount results in undef
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 21:38:05 +0000 (21:38 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 21:38:05 +0000 (21:38 +0000)
commitea9bcfc70719c1ecc18828781ef4cd3bce8c8e2f
tree738e87724741427f4e58eabb9421603d5c69b997
parentf6492bc6b21946636f7b76ff25183025804522e7
ConstantFold: an undef shift amount results in undef

X shifted by undef results in undef because the undef value can
represent values greater than the width of the operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223968 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Transforms/InstSimplify/undef.ll