diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt index 6f6abd478dbf..80368546c996 100644 --- a/llvm/lib/Target/X86/README.txt +++ b/llvm/lib/Target/X86/README.txt @@ -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. + +//===---------------------------------------------------------------------===//