[PATCH] D42216: Use New Module Metadata String "AvoidPLT" to avoid calls via PLT

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 16:57:31 PST 2018


rnk added a comment.

AvoidPLT doesn't seem like the best name. A more affirmative name like "RtlibUseGOT" might be better.



================
Comment at: lib/IR/Module.cpp:518
+    return true;
+
+  return false;
----------------
Maybe this should check Val->getZExtValue for a non-zero value.


================
Comment at: test/CodeGen/X86/no-plt.ll:14
+}
+
+define i32 @main() #1 {
----------------
Can you test a few other RTLIB functions like i128 multiply and memset, just for generality?


https://reviews.llvm.org/D42216





More information about the llvm-commits mailing list