[PATCH] D21737: [PATCH] [CodeGen] Insert TargetLibraryInfoWrapperPass before anything else.

Mehdi AMINI via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 28 08:10:08 PDT 2016


mehdi_amini added inline comments.

================
Comment at: lib/CodeGen/BackendUtil.cpp:459
@@ -456,2 +458,3 @@
   legacy::FunctionPassManager *FPM = getPerFunctionPasses();
+  FPM->add(new TargetLibraryInfoWrapperPass(*TLII));
   if (CodeGenOpts.VerifyModule)
----------------
It is not super clean to duplicated this code.
Also the minimum is to document why it is done.


Repository:
  rL LLVM

http://reviews.llvm.org/D21737





More information about the cfe-commits mailing list