This fixes the root cause of PR28219 - profile summar metadata mismatch in LTO mode. This probably needs an LTO test too - what would be the right place to have it?
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
So even after applying this patch, IRMover is still emitting an error. I
believe the root cause of this is that we do a pointer based comparison of
the metadata values. This has worked until now when we have constant values
because we unique them in the IR, but doesn't for the ProfileSummary value
which references another metadata entry. If you could, please take a look
and let me know if I'm seeing things correctly.
Comment Actions
Scratch that, please ignore my previous comment. My own naivety and an IR file with stale ProfileSummary info in the build was causing the error. This patch does in fact fix the problem when not using IR/bitcode files in that way.