Skip to content

Commit 3651142

Browse files
authored
[BOLT][NFC] Refactor function state check (llvm#73420)
Remove redundant check in updateOutputValues().
1 parent abc4058 commit 3651142

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bolt/lib/Core/BinaryFunction.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4143,10 +4143,6 @@ void BinaryFunction::updateOutputValues(const BOLTLinker &Linker) {
41434143
if (!requiresAddressMap())
41444144
return;
41454145

4146-
// Output ranges should match the input if the body hasn't changed.
4147-
if (!isSimple() && !BC.HasRelocations)
4148-
return;
4149-
41504146
// AArch64 may have functions that only contains a constant island (no code).
41514147
if (getLayout().block_empty())
41524148
return;

0 commit comments

Comments
 (0)