Teach instcombine to look for booleans in wider integers when it encounters a
authorNick Lewycky <nicholas@mxc.ca>
Sun, 15 Nov 2009 05:55:17 +0000 (05:55 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 15 Nov 2009 05:55:17 +0000 (05:55 +0000)
commitdf772f257fb79ee3da40df0c18051163e738707d
treeae879fcbe618334e8bf2a5bd144b0653cae6bb51
parente98b4b0695f727dda44c366f5de906edf06cf7e9
Teach instcombine to look for booleans in wider integers when it encounters a
zext(icmp). It may be able to optimize that away. This fixes one of the cases
in PR5438.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88830 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/compare-signs.ll [new file with mode: 0644]