rnk added a comment.

In https://reviews.llvm.org/D43184#1039354, @mstorsjo wrote:

> Ok - I'll put it on the backburner, and maybe see if I'd try implementing the 
> linker part of fixing unannotated data imports at some point.


I'm not sure that's feasible. At least for x86, global addresses can be folded 
in ways that mean the linker cannot relax them. You can go the other way, 
though. If we start by assuming all data is imported, you can often relax an 
__imp_sym load to a LEA sym(%rip). This increases register pressure and 
generates worse code, but it has conceivable use cases.


Repository:
  rC Clang

https://reviews.llvm.org/D43184



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to