]> granicus.if.org Git - llvm/commit
Revert "[InstCombine] allow splat vector folds in adjustMinMax()"
authorGreg Bedwell <greg_bedwell@sn.scee.net>
Wed, 2 Nov 2016 23:17:05 +0000 (23:17 +0000)
committerGreg Bedwell <greg_bedwell@sn.scee.net>
Wed, 2 Nov 2016 23:17:05 +0000 (23:17 +0000)
commit2ad749ea5e2d257988092bb6b6a5698e32636a41
treec6e3ffd9dc56e0b2de9e79e1a80d97cfc32a2e48
parenta9558ab98292389bea368825492d794d84b2e0f5
Revert "[InstCombine] allow splat vector folds in adjustMinMax()"

This reverts commit r285732.

This change introduced a new assertion failure in the following
testcase at -O2:

typedef short __v8hi __attribute__((__vector_size__(16)));
__v8hi foo(__v8hi &V1, __v8hi &V2, unsigned mask) {
  __v8hi Result = V1;
  if (mask & 0x80)
    Result[0] = V2[0];
  return Result;
}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285866 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/adjust-for-minmax.ll