[llvm] [CodeGen] Port `GCInfoPrinter` to new pass manager (PR #74972)

via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 10 21:57:49 PST 2023


================
@@ -101,7 +189,7 @@ void Printer::getAnalysisUsage(AnalysisUsage &AU) const {
 }
 
 bool Printer::runOnFunction(Function &F) {
-  if (F.hasGC())
+  if (!F.hasGC())
----------------
paperchalice wrote:

Controlled by option `print-gc` in `TargetPassConfig.cpp`, but no one used it during the past 15+ years.
https://github.com/llvm/llvm-project/blob/fc715e4cd942612a091097339841733757b53824/llvm/lib/CodeGen/TargetPassConfig.cpp#L1213-L1217

https://github.com/llvm/llvm-project/pull/74972


More information about the llvm-commits mailing list