[Mlir-commits] [clang] [flang] [mlir] [Flang][Driver] Add support for '-fprofile-sample-use' option (PR #188697)

Kaviya Rajendiran llvmlistbot at llvm.org
Fri Mar 27 03:23:54 PDT 2026


================
@@ -99,6 +99,10 @@ void FunctionAttrPass::runOnOperation() {
     func->setAttr(
         mlir::LLVM::LLVMFuncOp::getPreferVectorWidthAttrName(llvmFuncOpName),
         mlir::StringAttr::get(context, preferVectorWidth));
+  if (UseSampleProfile)
+    func->setAttr(
----------------
kaviya2510 wrote:

Thankyou for the review @hockyy . I will update the changes.

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


More information about the Mlir-commits mailing list