[PATCH] [PowerPC] Replace foul hackery with real calls to __tls_get_addr
hfinkel at anl.gov
hfinkel at anl.gov
Mon Nov 10 22:35:21 PST 2014
================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:782
@@ -781,3 +781,3 @@
case PPCISD::CALL: return "PPCISD::CALL";
case PPCISD::CALL_NOP: return "PPCISD::CALL_NOP";
case PPCISD::MTCTR: return "PPCISD::MTCTR";
----------------
Please add CALL_TLS, CALL_NOP_TLS here.
================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:1767
@@ +1766,3 @@
+
+ std::pair<SDValue, SDValue> CallResult = LowerCallTo(CLI);
+ SDValue TLSAddr = CallResult.first;
----------------
This block of code seems the same as the one added above. Can you please refactor this?
http://reviews.llvm.org/D6209
More information about the llvm-commits
mailing list