OSDN Git Service

[DAGCombiner] Don't combine aext(setcc) if the setcc is already using the target...
authorCraig Topper <craig.topper@intel.com>
Mon, 27 Nov 2017 23:51:40 +0000 (23:51 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 27 Nov 2017 23:51:40 +0000 (23:51 +0000)
commita8862041d4ebc654baa76a8a946ba7043b97ed45
tree801669514eb32663cba8deaeb82d1afb18137e01
parentb7bbf042a32ddb440f04a943614bacfab142f4bb
[DAGCombiner] Don't combine aext(setcc) if the setcc is already using the target's preferred result type.

With AVX512 vXi1 types are legal so we shouldn't be extending them.

This change is similar to existing code in the zext(setcc) combine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319120 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/vector-compare-results.ll