[PATCH] D123998: llvm-reduce: Try to parse triple/datalayout from module

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 14:37:25 PDT 2022


arsenm added inline comments.


================
Comment at: llvm/tools/llvm-reduce/ReducerWorkItem.cpp:292
     std::unique_ptr<Module> M = MParser->parseIRModule(SetDataLayout);
+    MMI = std::make_unique<MachineModuleInfo>(TM.get());
     MParser->parseMachineFunctions(*M, *MMI);
----------------
Added an ugly downcast, like llc, to avoid the dependence on D123964


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123998/new/

https://reviews.llvm.org/D123998



More information about the llvm-commits mailing list