summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-11-24 00:44:37 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-11-24 00:44:37 +0000
commit25229086533627dbbfe5f602737d78441835a47e (patch)
tree3356344aefc9f1b619648aec92fd5d99b1c688f4 /clang/lib/CodeGen/CodeGenModule.cpp
parentf890f5166670d56f0fe821178b8ff15a5fecb0b6 (diff)
downloadbcm5719-llvm-25229086533627dbbfe5f602737d78441835a47e.tar.gz
bcm5719-llvm-25229086533627dbbfe5f602737d78441835a47e.zip
Materialize global addresses via movt/movw pair, this is always better
than doing the same via constpool: 1. Load from constpool costs 3 cycles on A9, movt/movw pair - just 2. 2. Load from constpool might stall up to 300 cycles due to cache miss. 3. Movt/movw does not use load/store unit. 4. Less constpool entries => better compiler performance. This is only enabled on ELF systems, since darwin does not have needed relocations (yet). llvm-svn: 89720
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud