-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
icf: compare alloca position for testing equivalence
This fixes an incorrect detection of identical code involving alloca ordering. Previously for allocas, we only checked if the allocated type, operands and alignment were the same. However this doesn't take into account that two identical alloca instructions at different relative points in the function can not be taken for the same. Fixed by adding a map that keeps track of allocas that take place at relatively the same position, and using that map to check alloca equivalence.
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters