OSDN Git Service

[X86][SSE] Improve VSEXT/VZEXT constant folding.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 11 Feb 2017 21:55:24 +0000 (21:55 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 11 Feb 2017 21:55:24 +0000 (21:55 +0000)
commit796f9e5e578ecd0d4d399bf118dbfc17896a90b5
tree46c78b052d734101d3ddd24bd795d1670a657649
parente0ae1eda9ceb406ff1171393b29701f3771dacac
[X86][SSE] Improve VSEXT/VZEXT constant folding.

Generalize VSEXT/VZEXT constant folding to work with any target constant bits source not just BUILD_VECTOR .

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294873 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512-mask-op.ll
test/CodeGen/X86/fold-vector-sext-zext.ll
test/CodeGen/X86/vector-idiv-sdiv-128.ll
test/CodeGen/X86/vector-idiv-sdiv-256.ll
test/CodeGen/X86/vector-idiv-udiv-128.ll
test/CodeGen/X86/vector-idiv-udiv-256.ll
test/CodeGen/X86/widen_load-2.ll