diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2012-01-15 19:27:55 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2012-01-15 19:27:55 +0000 |
commit | 57935243bdf2bdf5ac5dc2ce24040349659129d8 (patch) | |
tree | 243b65bdfb7a741ec4ceb804bce1040af094b148 /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | 3a5ae564b8bb06f79c215526357eea5f213b78a6 (diff) | |
download | bcm5719-llvm-57935243bdf2bdf5ac5dc2ce24040349659129d8.tar.gz bcm5719-llvm-57935243bdf2bdf5ac5dc2ce24040349659129d8.zip |
[AVX] Optimize x86 VSELECT instructions using SimplifyDemandedBits.
We know that the blend instructions only use the MSB, so if the mask is
sign-extended then we can convert it into a SHL instruction. This is a
common pattern because the type-legalizer sign-extends the i1 type which
is used by the LLVM-IR for the condition.
Added a new optimization in SimplifyDemandedBits for SIGN_EXTEND_INREG -> SHL.
llvm-svn: 148225
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
0 files changed, 0 insertions, 0 deletions