[llvm] [X86] Improve helper for simplifying demanded bits of compares (PR #84360)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 05:51:11 PDT 2024
================
@@ -41293,6 +41293,154 @@ static SDValue combineShuffle(SDNode *N, SelectionDAG &DAG,
return SDValue();
}
+// Simplify a decomposed (sext (setcc)). Assumes prior check that
+// bitwidth(sext)==bitwidth(setcc operands).
----------------
RKSimon wrote:
I suppose this could technically be moved to TargetLowering.cpp so any ZeroOrNegativeOneBooleanContent target could use it?
https://github.com/llvm/llvm-project/pull/84360
More information about the llvm-commits
mailing list