[llvm] [llvm][CodeGen] respect booleanVectorContents while UnrollVSETCC (NFC) (PR #97589)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 3 09:21:07 PDT 2024
================
@@ -2016,7 +2016,8 @@ SDValue VectorLegalizer::UnrollVSETCC(SDNode *Node) {
TLI.getSetCCResultType(DAG.getDataLayout(),
*DAG.getContext(), TmpEltVT),
LHSElem, RHSElem, CC);
- Ops[i] = DAG.getSelect(dl, EltVT, Ops[i], DAG.getAllOnesConstant(dl, EltVT),
+ Ops[i] = DAG.getSelect(dl, EltVT, Ops[i],
+ DAG.getBoolConstant(true, dl, EltVT, VT),
----------------
arsenm wrote:
Instead of using the select on constant, why not use getBoolExt
https://github.com/llvm/llvm-project/pull/97589
More information about the llvm-commits
mailing list