There is a long function foldICmpInstWithConstant,
we can separate  a function foldICmpBinOpWithConstant from it.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
| llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
|---|---|---|
| 3337 | @Chenbing.Zheng Is a return nullptr missing from the end of the function? Or just: // TODO: These folds could be refactored to be part of the above calls. return foldICmpBinOpEqualityWithConstant(Cmp, BO, C));  | |
| llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
|---|---|---|
| 3337 | yer, thanks for your advice. I have fixed it.  | |
@Chenbing.Zheng Is a return nullptr missing from the end of the function? Or just: