]> granicus.if.org Git - llvm/commit
ConstantFold, InstSimplify: undef >>a x can be either -1 or 0, choose 0
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 21:58:15 +0000 (21:58 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 21:58:15 +0000 (21:58 +0000)
commit72c6bdbf70a64279804c4124318b25cfd006a6b3
tree689fee65b3dd02c4c35c36dca27fe4022c0c4147
parentea9bcfc70719c1ecc18828781ef4cd3bce8c8e2f
ConstantFold, InstSimplify: undef >>a x can be either -1 or 0, choose 0

Zero is usually a nicer constant to have than -1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223969 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
lib/IR/ConstantFold.cpp
test/Transforms/InstCombine/shift.ll