OSDN Git Service

Fixup patch for revision rL316070.
authorNikolai Bozhenov <nikolai.bozhenov@intel.com>
Wed, 18 Oct 2017 14:24:50 +0000 (14:24 +0000)
committerNikolai Bozhenov <nikolai.bozhenov@intel.com>
Wed, 18 Oct 2017 14:24:50 +0000 (14:24 +0000)
commit429594f14d984c439ffcce83f636c515cfa3a9a8
tree217d550c7e0fa149e1fe0cc63eed6ceaa89b470d
parentcd3c4f300b9f3d170ba3dfbfd2e287825a943fdc
Fixup patch for revision rL316070.

Added check that type of CmpConst and source type of trunc are equal
for correct matching of the case when we can set widened C constant
equal to CmpConstant.

  %cond = cmp iN %x, CmpConst
  %tr = trunc iN %x to iK
  %narrowsel = select i1 %cond, iK %t, iK C

Patch by: Gainullin, Artur <artur.gainullin@intel.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316082 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp