[llvm] [DAG] combineVSelectWithAllOnesOrZeros - missing freeze (PR #150388)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 28 05:29:52 PDT 2025


================
@@ -13165,23 +13165,23 @@ static SDValue combineVSelectWithAllOnesOrZeros(SDValue Cond, SDValue TVal,
   // select Cond, -1, x → or Cond, x
   if (IsTAllOne) {
     SDValue X = DAG.getBitcast(CondVT, FVal);
----------------
RKSimon wrote:

Its probably better to freeze the FVal/TVal before bitcasting instead of waiting to freeze the tmp X

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


More information about the llvm-commits mailing list