OSDN Git Service

[DAGCombiner] When combining zero_extend of a truncate, only mask before extending...
authorCraig Topper <craig.topper@intel.com>
Thu, 1 Mar 2018 22:32:25 +0000 (22:32 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 1 Mar 2018 22:32:25 +0000 (22:32 +0000)
commit5af2fadb0443687ae3d3d805e6825a1a167466ac
tree9dd2d758178837dfc78d63996a4720ddc872fddd
parentb755ca310872ae4b601c1d722f62e1e00f37f0ae
[DAGCombiner] When combining zero_extend of a truncate, only mask before extending for vectors.

Masking first, prevents the extend from being combine with loads. Its also interfering with some vXi1 extraction code.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326500 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AArch64/arm64-aapcs.ll
test/CodeGen/AArch64/arm64-arith.ll
test/CodeGen/AArch64/bitfield.ll
test/CodeGen/NVPTX/param-load-store.ll
test/CodeGen/PowerPC/vec_extract_p9_2.ll
test/CodeGen/SystemZ/insert-05.ll
test/CodeGen/X86/3addr-or.ll
test/CodeGen/X86/avx512cd-intrinsics-upgrade.ll
test/CodeGen/X86/avx512cdvl-intrinsics-upgrade.ll
test/CodeGen/X86/avx512vl-vec-masked-cmp.ll
test/CodeGen/X86/memset-nonzero.ll
test/CodeGen/X86/pr27591.ll
test/CodeGen/X86/pr35763.ll
test/CodeGen/X86/sext-i1.ll
test/CodeGen/X86/swift-return.ll
test/DebugInfo/X86/sdag-combine.ll