When we're doing a compare of load-AND-constant to 0
authorDale Johannesen <dalej@apple.com>
Fri, 7 Nov 2008 01:28:02 +0000 (01:28 +0000)
committerDale Johannesen <dalej@apple.com>
Fri, 7 Nov 2008 01:28:02 +0000 (01:28 +0000)
commit89217a6f1852e764e58c489872b2d155dc2b7b8b
tree7971bcf9cef3aa08e40cdcaa4ea8a0f6badad4e9
parentb7c6ebcb4732302310cfaca81e1d26c3802c1646
When we're doing a compare of load-AND-constant to 0
(e.g. a bitfield test) narrow the load as much as possible.
The has the potential to avoid unnecessary partial-word
load-after-store conflicts, which cause stalls on several targets.
Also a size win on x86 (testb vs testl).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58825 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp