[PATCH] D25482: [PPC] Allow two post RA schedulers to be in the pipeline and select one depending on the Machine Function's subtarget

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 27 16:40:05 PDT 2016


echristo added inline comments.


================
Comment at: lib/CodeGen/MachineFunctionPass.cpp:94-98
+bool MachineFunctionPass::skipFunction(const MachineFunction &MF) const {
+  if (!MF.getSubtarget().runPass(this->getPassID()))
+    return true;
+
+  return FunctionPass::skipFunction(*MF.getFunction());
----------------
I'm not sure why you need all of this and can't write the skipFunction without needing a MachineFunction in specific. Can you explain for me?


https://reviews.llvm.org/D25482





More information about the llvm-commits mailing list