[PATCH] PowerPC: CTR shouldn't fire if a TLS call is in the loop
hfinkel at anl.gov
hfinkel at anl.gov
Sat Dec 27 05:03:31 PST 2014
LGTM, thanks!
================
Comment at: lib/Target/PowerPC/PPCCTRLoops.cpp:207
@@ +206,3 @@
+ TLSModel::Model Model = TM->getTLSModel(GV);
+ return Model == TLSModel::GeneralDynamic || Model == TLSModel::LocalDynamic;
+}
----------------
Please add a comment here explaining that determining the address of a TLS variable results in a function call in these TLS models.
http://reviews.llvm.org/D6786
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list