Add a new target hook "predictableSelectIsExpensive".
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 5 May 2012 12:49:14 +0000 (12:49 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 5 May 2012 12:49:14 +0000 (12:49 +0000)
commitaaf723dd2bccc052d2dd28e3cc4db76f2a3e2fb0
tree009d318741a34f16b1136257e05c64d7141facef
parentaf878315192a9fa5b534364e327c24aeb8d73b5a
Add a new target hook "predictableSelectIsExpensive".

This will be used to determine whether it's profitable to turn a select into a
branch when the branch is likely to be predicted.

Currently enabled for everything but Atom on X86 and Cortex-A9 devices on ARM.

I'm not entirely happy with the name of this flag, suggestions welcome ;)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156233 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/X86/X86ISelLowering.cpp