[PATCH] [PowerPC] Replace foul hackery with real calls to __tls_get_addr
Rafael Ávila de Espíndola
rafael.espindola at gmail.com
Mon Nov 10 21:44:37 PST 2014
================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:3741
@@ +3740,3 @@
+ assert(!needIndirectCall && "Indirect call to __tls_get_addr???");
+ SDNode *AddI = Chain.getNode()->getOperand(2).getNode();
+ SDValue TGTAddr = AddI->getOperand(1);
----------------
This patch is nice, but this part looks a bit too clever. Could you pass TGTAddr down the callchain maybe?
http://reviews.llvm.org/D6209
More information about the llvm-commits
mailing list