[InstCombine] Ensure that truncated int types are legal.
authorSanjay Patel <spatel@rotateright.com>
Tue, 25 Oct 2016 20:11:47 +0000 (20:11 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 25 Oct 2016 20:11:47 +0000 (20:11 +0000)
commitf3dda13bd2fd08252ff5aaf84974a28d7c721f57
tree51f884312fdd1ed50354eea29fb08560436805b8
parentf6c4ab901b18b42cf26ad4984466ff9f51c48b42
[InstCombine] Ensure that truncated int types are legal.

Fixes the FIXMEs in D25952 and rL285075.

Patch by bryant!

Differential Revision: https://reviews.llvm.org/D25955

llvm-svn: 285108
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp-shl-nuw.ll
llvm/test/Transforms/InstCombine/icmp.ll