llvm-project
b96b6616 - [SCEV] Use howManyLessThans to implement howManyGreaterThans. (#226846)

Commit
50 days ago
[SCEV] Use howManyLessThans to implement howManyGreaterThans. (#226846) Update howManyLessThans to support inverting the analyzed comparison and analyze LHS > RHS as ~LHS < ~RHS. howManyLessThans should now handle all cases howManyGreaterThans did (and a few more, see improvements in https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/1443). howManyLessThans now accepts an Inverted argument, which analyzes ~LHS < ~RHS, without materializing the inverted operands explicitly, which can pessimize results. I tried to update all code paths where this is possible without too many changes. A few code paths need bigger changes, and are skipped for now. PR: https://github.com/llvm/llvm-project/pull/226846
Author
Parents
Loading