[PATCH] D14965: [llc/opt] Add an option to run all passes twice

Derek Schuff via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 4 14:51:37 PST 2015


dschuff added a subscriber: dschuff.

================
Comment at: llvm/trunk/tools/opt/opt.cpp:623
@@ +622,3 @@
+    Buffer.clear();
+    std::unique_ptr<Module> M2(CloneModule(M.get()));
+    Passes.run(*M2);
----------------
This use of CloneModule means that llc now depends on TransformUtils (so it needed to be added to required_libraries in LLVMBuild.txt and CMakeLists.txt)

Fixed in r254786


Repository:
  rL LLVM

http://reviews.llvm.org/D14965





More information about the llvm-commits mailing list