Skip to content

Commit

Permalink
[BOLT][NFC] Refactor function state check (llvm#73420)
Browse files Browse the repository at this point in the history
Remove redundant check in updateOutputValues().
  • Loading branch information
maksfb authored Nov 26, 2023
1 parent abc4058 commit 3651142
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bolt/lib/Core/BinaryFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4143,10 +4143,6 @@ void BinaryFunction::updateOutputValues(const BOLTLinker &Linker) {
if (!requiresAddressMap())
return;

// Output ranges should match the input if the body hasn't changed.
if (!isSimple() && !BC.HasRelocations)
return;

// AArch64 may have functions that only contains a constant island (no code).
if (getLayout().block_empty())
return;
Expand Down

0 comments on commit 3651142

Please sign in to comment.