================ @@ -251,6 +251,16 @@ void loongarch::getLoongArchTargetFeatures(const Driver &D, } else /*-mno-lasx*/ Features.push_back("-lasx"); } + + // Select frecipe feature determined by -m[no-]frecipe. + if (const Arg *A = + Args.getLastArg(options::OPT_mfrecipe, options::OPT_mno_frecipe)) { + // -mno-frecipe conflicts with -mfrecipe. + if (A->getOption().matches(options::OPT_mfrecipe)) { + Features.push_back("+frecipe"); + } else /*-mnofrecipe*/ ---------------- SixWeining wrote:
Unnecessary comment. https://github.com/llvm/llvm-project/pull/109917 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits