[llvm] [InstCombine] Fold fcmp into select (PR #86482)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 10:16:30 PDT 2024
================
@@ -8020,6 +8020,10 @@ Instruction *InstCombinerImpl::visitFCmpInst(FCmpInst &I) {
if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI)))
return NV;
break;
+ case Instruction::Select:
+ if (Instruction *NV = FoldOpIntoSelect(I, cast<SelectInst>(LHSI)))
----------------
dtcxzyw wrote:
It should be done in a separate patch.
Related patch: https://reviews.llvm.org/D146349
https://github.com/llvm/llvm-project/pull/86482
More information about the llvm-commits
mailing list