[PATCH] D70321: Make it possible to add the MIR Canonicalizer pass in a pipeline

Aditya Nandakumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 09:47:34 PST 2019


aditya_nandakumar created this revision.
aditya_nandakumar added reviewers: plotfi, bogner.
Herald added a project: LLVM.

Allow the pass to be added in a pipeline (for debugging purposes).
Alternatively we can separate the MIRCanonicalizer pass into a header, and not need to add the ID here.


https://reviews.llvm.org/D70321

Files:
  llvm/include/llvm/CodeGen/Passes.h


Index: llvm/include/llvm/CodeGen/Passes.h
===================================================================
--- llvm/include/llvm/CodeGen/Passes.h
+++ llvm/include/llvm/CodeGen/Passes.h
@@ -275,6 +275,11 @@
   /// MachineCSE - This pass performs global CSE on machine instructions.
   extern char &MachineCSEID;
 
+  /// MIRCanonicalizer - This pass canonicalizes MIR by renaming vregs
+  /// according to the semantics of the instruction as well as hoists
+  /// code.
+  extern char &MIRCanonicalizerID;
+
   /// ImplicitNullChecks - This pass folds null pointer checks into nearby
   /// memory operations.
   extern char &ImplicitNullChecksID;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70321.229576.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191115/3204b6be/attachment-0001.bin>


More information about the llvm-commits mailing list