[llvm] Add freeze for LowerSELECT (PR #148796)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 00:30:08 PDT 2025
================
@@ -11071,11 +11071,17 @@ SDValue SITargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
VT.getSizeInBits() == 512)
return splitTernaryVectorOp(Op, DAG);
- assert(VT.getSizeInBits() == 64);
SDLoc DL(Op);
SDValue Cond = Op.getOperand(0);
-
+ if (Cond.getOpcode() == ISD::SETCC) {
----------------
arsenm wrote:
It doesn't matter what the source operation is, the freeze is potentially needed anyway (it's really the non-compare cases that are most interesting here)
https://github.com/llvm/llvm-project/pull/148796
More information about the llvm-commits
mailing list