[llvm] [InstCombine] Improve select equiv fold for plain condition (PR #83405)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 08:19:05 PDT 2024
================
@@ -500,6 +500,65 @@ static bool isSelect01(const APInt &C1I, const APInt &C2I) {
return C1I.isOne() || C1I.isAllOnes() || C2I.isOne() || C2I.isAllOnes();
}
+/// Try to simplify a select instruction when the user of its select user
+/// indicates the condition.
----------------
arsenm wrote:
I don't know how to parse this comment "when the user of its select user". Can you rephrase this whole thing?
https://github.com/llvm/llvm-project/pull/83405
More information about the llvm-commits
mailing list