Depending on how clang is built, it may discard the IR names and use names like %2 instead of %result.ptr, causing tests that rely on the IR name to fail. Using fno-discard-value-names ensures the actual name is present regardless of the build mode.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 33711 Build 33710: arc lint + arc unit
Event Timeline
Comment Actions
Looks good, alternatively I think we can just change %result.ptr into a variable match?
Comment Actions
Why isn't this using FileCheck variable matching in the first place? That's the least fragile solution.
Comment Actions
Why isn't this using FileCheck variable matching in the first place? That's the least fragile solution.
No reason, just something I overlooked when I wrote it-
Comment Actions
- Use filecheck variable matching instead of an explicit -fno-discard-value-names option
Comment Actions
Sounds good, changed to use variable matching instead. This passes w/ either -fno-discard-value-names or -fdiscard-value-names used.
Comment Actions
Thanks. This is surprisingly the first time I've heard of fdiscard-value-names. Seems useful, since now you can test your IR both ways without having to completely recompile clang.