mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 15:39:28 +00:00
Remove undefined behavior when loading optimal edge profile info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
47ad2d6e97
commit
0981a0a106
@ -159,7 +159,7 @@ void LoaderPass::recurseBasicBlock(const BasicBlock *BB) {
|
||||
void LoaderPass::readOrRememberEdge(ProfileInfo::Edge e,
|
||||
unsigned weight, unsigned ei,
|
||||
Function *F) {
|
||||
if (weight != (unsigned)MissingValue) {
|
||||
if (weight != ~0U) {
|
||||
EdgeInformation[F][e] += weight;
|
||||
DEBUG(errs()<<"--Read Edge Counter for " << e
|
||||
<<" (# "<<ei<<"): "<<(unsigned)getEdgeWeight(e)<<"\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user