[llvm] [BOLT] Fix comparison function for Linux ORC entries (PR #79921)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 17:21:34 PST 2024
================
@@ -95,7 +95,7 @@ class LinuxKernelRewriter final : public MetadataRewriter {
return 1;
if (IP > Other.IP)
return 0;
- return ORC == NullORC;
+ return ORC == NullORC && Other.ORC != NullORC;
----------------
aaupov wrote:
Is it important to have an ordering for NullORC entries? Should we order NullORC entries by some sequential id?
https://github.com/llvm/llvm-project/pull/79921
More information about the llvm-commits
mailing list