mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 01:43:06 +00:00
Add a note about a potential PIC optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
db7991de75
commit
2d0d59380a
@ -1709,3 +1709,10 @@ _test:
|
||||
it would be better to codegen as: x+~y (notl+addl)
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
We should consider using __i686.get_pc_thunk.bx for MOVPC32r (used for PIC)
|
||||
on targets that support it, such as Linux and similar targets, in place of
|
||||
the call-a-label trick. It's said to be friendlier to branch-prediction
|
||||
hardware because it pairs a ret with the call.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user