-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ConstantFold] Simplify evaluateICmpRelation() implementation (NFCI)
Clarify that most of this only works on pointer icmps, and remove the unnecessary isSigned parameter, as well as the ConstantInt fallback. Also perform complexity sorting upfront, so we don't need to deal with swapped cases in the individual branches.
- Loading branch information
Showing
1 changed file
with
38 additions
and
68 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