OSDN Git Service

[X86][SSE] Match all-of bool scalar reductions into a bitcast/movmsk + cmp.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 17 May 2019 17:25:55 +0000 (17:25 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 17 May 2019 17:25:55 +0000 (17:25 +0000)
commit1460d5989d13fc170ae28077e34f18186149b05d
tree0f49183a11138f1465f6466d6b810e83e4011041
parent7527749e866a14b943be1a32ac043fb36f3c773e
[X86][SSE] Match all-of bool scalar reductions into a bitcast/movmsk + cmp.

Same as what we do for vector reductions in combineHorizontalPredicateResult, use movmsk+cmp for scalar (and(extract(x,0),extract(x,1)) reduction patterns.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361052 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/movmsk-cmp.ll