[llvm] Add freeze for LowerSELECT (PR #148796)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 06:31:54 PDT 2025
================
@@ -11075,6 +11075,7 @@ SDValue SITargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
SDLoc DL(Op);
SDValue Cond = Op.getOperand(0);
+ Cond = DAG.getFreeze(Cond);
----------------
shiltian wrote:
```suggestion
SDValue Cond = DAG.getFreeze(Op.getOperand(0));
```
https://github.com/llvm/llvm-project/pull/148796
More information about the llvm-commits
mailing list