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)
commit89cf6d79ebc573647c562e5f2bd6c4d11a839f8b
tree7f32ef6048967398e371ab3a82d2942c9dc71dc8
parentdb0b13cef02411caadddf91a57c7c1ffafe34cd2
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.

llvm-svn: 223968
llvm/lib/IR/ConstantFold.cpp
llvm/test/Transforms/InstSimplify/undef.ll