[llvm] [InstCombine] Use the select condition to try to constant fold binops into select (PR #84696)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 13:29:50 PDT 2024
================
@@ -612,8 +612,13 @@ class LLVM_LIBRARY_VISIBILITY InstCombinerImpl final
Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI,
bool FoldWithMultiUse = false);
- /// This is a convenience wrapper function for the above two functions.
- Instruction *foldBinOpIntoSelectOrPhi(BinaryOperator &I);
+ /// This is a convenience wrapper function for the above function.
----------------
arsenm wrote:
above function isn't clear, use doxygen reference?
https://github.com/llvm/llvm-project/pull/84696
More information about the llvm-commits
mailing list