OSDN Git Service

[AggressiveInstCombine] Fixed TruncCombine class to handle TruncInst leaf node correctly.
authorAmjad Aboud <amjad.aboud@intel.com>
Wed, 31 Jan 2018 22:39:05 +0000 (22:39 +0000)
committerAmjad Aboud <amjad.aboud@intel.com>
Wed, 31 Jan 2018 22:39:05 +0000 (22:39 +0000)
commit6a68ef847850dfc22fe918186199aac78874298e
treee31519fe2c14fb80aead658729249c8a488474ed
parentb43e1871ddc3c168bd21e75568b0c322416d1e18
[AggressiveInstCombine] Fixed TruncCombine class to handle TruncInst leaf node correctly.
This covers the case where TruncInst leaf node is a constant expression.
See PR36121 for more details.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323926 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
test/Transforms/AggressiveInstCombine/trunc_const_expr.ll
test/Transforms/AggressiveInstCombine/trunc_multi_uses.ll