[llvm] [llvm][CodeGen] respect booleanVectorContents while UnrollVSETCC (PR #97589)

Yingchi Long via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 23:51:00 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),
----------------
inclyc wrote:

Thanks, updated! @arsenm @RKSimon 

https://github.com/llvm/llvm-project/pull/97589


More information about the llvm-commits mailing list