[llvm] [InstCombine] Extend `foldICmpAddConstant` to disjoint `or`. (PR #75899)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 20 00:19:24 PST 2023


dtcxzyw wrote:

@mgudim Could you please have a look at https://github.com/dtcxzyw/llvm-opt-benchmark/pull/10?
Our CI found that this patch introduced some unnecessary `and %size, ~signmask` patterns before calling `operator new(size_t)`.
Some file changes:
```
bench/proxygen/optimized/HTTP2PriorityQueue.cpp.ll
bench/proxygen/optimized/Service.cpp.ll
bench/re2/optimized/compile.cc.ll
bench/re2/optimized/dfa.cc.ll
bench/re2/optimized/prefilter_tree.cc.ll
bench/re2/optimized/regexp.cc.ll
bench/velox/optimized/ArrayDistinct.cpp.ll
bench/velox/optimized/ArrayDuplicates.cpp.ll
bench/velox/optimized/ArrayIntersectExcept.cpp.ll
bench/velox/optimized/Filter.cpp.ll
...
```



https://github.com/llvm/llvm-project/pull/75899


More information about the llvm-commits mailing list