[all-commits] [llvm/llvm-project] 5bf191: [llvm-profgen] Fix index out of bounds error while...
ictwanglei via All-commits
all-commits at lists.llvm.org
Fri Nov 5 18:39:58 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5bf191a381bba84edc791710e914147de23691dd
https://github.com/llvm/llvm-project/commit/5bf191a381bba84edc791710e914147de23691dd
Author: wlei <wlei at fb.com>
Date: 2021-11-05 (Fri, 05 Nov 2021)
Changed paths:
A llvm/test/tools/llvm-profgen/Inputs/out-of-bounds.raw.prof
M llvm/test/tools/llvm-profgen/inline-noprobe.test
M llvm/tools/llvm-profgen/ProfileGenerator.cpp
M llvm/tools/llvm-profgen/ProfiledBinary.cpp
M llvm/tools/llvm-profgen/ProfiledBinary.h
Log Message:
-----------
[llvm-profgen] Fix index out of bounds error while using ip.advance
Previously we assume there're some non-executing sections at the bottom of the text section so that we won't hit the array's bound. But on BOLTed binary, it turned out .bolt section is at the bottom of text section which can be profiled, then it crash llvm-profgen. This change try to fix it.
Reviewed By: hoy, wenlei
Differential Revision: https://reviews.llvm.org/D113238
More information about the All-commits
mailing list