diff options
author | Dale Johannesen <dalej@apple.com> | 2008-11-07 01:28:02 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-11-07 01:28:02 +0000 |
commit | 89217a6f1852e764e58c489872b2d155dc2b7b8b (patch) | |
tree | 7971bcf9cef3aa08e40cdcaa4ea8a0f6badad4e9 /lib/Transforms/Utils/PromoteMemoryToRegister.cpp | |
parent | b7c6ebcb4732302310cfaca81e1d26c3802c1646 (diff) |
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
Diffstat (limited to 'lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
0 files changed, 0 insertions, 0 deletions