[PATCH] D72873: [clang][xray] Add -fxray-ignore-loops option

2020-01-16 Thread Ian Levesque via Phabricator via cfe-commits
ianlevesque updated this revision to Diff 238600. ianlevesque added a comment. fix clang-format Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D72873/new/ https://reviews.llvm.org/D72873 Files: clang/include/clang/Basic/CodeGenOptions.def clang/

[PATCH] D72873: [clang][xray] Add -fxray-ignore-loops option

2020-01-16 Thread Ian Levesque via Phabricator via cfe-commits
ianlevesque created this revision. ianlevesque added a reviewer: dberris. Herald added a project: clang. Herald added a subscriber: cfe-commits. ianlevesque updated this revision to Diff 238600. ianlevesque added a comment. fix clang-format XRay allows tuning by minimum function size, but also a

[PATCH] D72873: [clang][xray] Add -fxray-ignore-loops option

2020-01-17 Thread Ian Levesque via Phabricator via cfe-commits
ianlevesque marked an inline comment as done. ianlevesque added inline comments. Comment at: clang/test/CodeGen/xray-ignore-loops.cpp:5 + return 1; +} + hiraditya wrote: > I think we need one more test case of a function having a loop. I'm not opposed but the lo

[PATCH] D72873: [clang][xray] Add -fxray-ignore-loops option

2020-01-17 Thread Aditya Kumar via Phabricator via cfe-commits
hiraditya added inline comments. Comment at: clang/lib/CodeGen/CodeGenFunction.cpp:821 llvm::itostr(CGM.getCodeGenOpts().XRayInstructionThreshold)); + if (CGM.getCodeGenOpts().XRayIgnoreLoops) { +Fn->addFnAttr("xray-ignore-loops"); we ca

[PATCH] D72873: [clang][xray] Add -fxray-ignore-loops option

2020-01-17 Thread Aditya Kumar via Phabricator via cfe-commits
hiraditya accepted this revision. hiraditya added a comment. This revision is now accepted and ready to land. The test case is in another patch so LGTM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D72873/new/ https://reviews.llvm.org/D72873 ___

[PATCH] D72873: [clang][xray] Add -fxray-ignore-loops option

2020-01-17 Thread Shoaib Meenai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG1d62be244108: [clang][xray] Add -fxray-ignore-loops option (authored by ianlevesque, committed by smeenai). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D728