[Mlir-commits] [mlir] [Clang][InstrProf] Allow absolute path in fun.list of -fprofile-list= (PR #67519)
Henrik G. Olsson
llvmlistbot at llvm.org
Wed Oct 4 08:15:02 PDT 2023
================
@@ -139,9 +139,23 @@ std::optional<ProfileList::ExclusionType>
ProfileList::isFileExcluded(StringRef FileName,
CodeGenOptions::ProfileInstrKind Kind) const {
StringRef Section = getSectionName(Kind);
- // Check for "source:<regex>=<case>"
+
+ // Convert the input file path to its canonical (absolute) form
+ llvm::SmallString<128> CanonicalFileName(FileName);
+ llvm::sys::fs::make_absolute(CanonicalFileName);
----------------
hnrklssn wrote:
Any specific reason why you convert the filename to absolute form before checking the relative name?
https://github.com/llvm/llvm-project/pull/67519
More information about the Mlir-commits
mailing list