Don't try to zExt just to check if an integer constant is zero, it might
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Apr 2012 00:16:22 +0000 (00:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Apr 2012 00:16:22 +0000 (00:16 +0000)
commitfdb230a154ead49cf0ded5b4587be994ec2f43e0
tree5f06fe3d706c779f383e7b64a0e7500449c6c714
parent2d620c571cb53993b788893b6ef73a6e2805411f
Don't try to zExt just to check if an integer constant is zero, it might
not fit in a i64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154364 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/Generic/pr12507.ll [new file with mode: 0644]