[llvm] [InstCombine] Fold `(x < y) ? -1 : zext(x != y)` into `u/scmp(x,y)` (PR #101049)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 11:11:43 PDT 2024
================
@@ -4111,5 +4143,8 @@ Instruction *InstCombinerImpl::visitSelectInst(SelectInst &SI) {
}
}
+ if (auto *Instruction = foldSelectToCmp(SI))
----------------
dtcxzyw wrote:
It would be better to move this fold before expensive folds above (e.g., line 4066).
https://github.com/llvm/llvm-project/pull/101049
More information about the llvm-commits
mailing list