OSDN Git Service

A select between a constant and zero, when fed by a bit test, can be efficiently
authorOwen Anderson <resistor@mac.com>
Wed, 22 Sep 2010 22:58:22 +0000 (22:58 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 22 Sep 2010 22:58:22 +0000 (22:58 +0000)
commited1088afb51189efff02886891c4e25a5a5fb5f9
tree77c254b149028b8cb963b08778b9f8155930e796
parent4af1eaee70a8de71f805ef7c3eca581ff6a014e8
A select between a constant and zero, when fed by a bit test, can be efficiently
lowered using a series of shifts.
Fixes <rdar://problem/8285015>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114599 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/bit-test-shift.ll [new file with mode: 0644]