[llvm] [BOLT] Add writing support for Linux kernel ORC (PR #80950)

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 16:43:40 PST 2024


================
@@ -593,20 +631,26 @@ Error LinuxKernelRewriter::processORCPostCFG() {
           continue;
         }
 
-        // In case there was no ORC entry that matched the function start
-        // address, we need to propagate ORC state from the previous entry.
+        // Get state for the start of the function.
         if (!CurrentState) {
           auto It =
               llvm::partition_point(ORCEntries, [&](const ORCListEntry &E) {
-                return E.IP < BF.getAddress();
+                return E.IP <= BF.getAddress();
----------------
dcci wrote:

Makes sense, can you just add a comment explaining this?

https://github.com/llvm/llvm-project/pull/80950


More information about the llvm-commits mailing list