OSDN Git Service

Revert "Revert "InstCombine: Reduce trunc (shl x, K) width.""
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Jun 2016 20:33:53 +0000 (20:33 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Jun 2016 20:33:53 +0000 (20:33 +0000)
commit769e73bcce6ae9edeb44663cb9be92fcace1ac9f
tree0877727c6e9272e12c39f729219b046ae7d8c154
parente2e9cee0d72c5e60c2741112e103e82b8102182d
Revert "Revert "InstCombine: Reduce trunc (shl x, K) width.""

Reapply r272987. Condition should be in terms of the destination type,
and the flags should not be copied.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273045 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
test/Transforms/InstCombine/2011-05-28-swapmulsub.ll
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/icmp.ll
test/Transforms/InstCombine/trunc.ll