[llvm] [GlobalISel] Support GISelValueTracking for G_FREEZE. (PR #223696)
Vikash Gupta via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 03:55:45 PDT 2026
================
@@ -2253,6 +2261,13 @@ void GISelValueTracking::computeKnownFPClass(Register R,
}
break;
}
+ case TargetOpcode::G_FREEZE: {
+ Register Src = MI.getOperand(1).getReg();
+ if (isGuaranteedNotToBeUndefOrPoison(Src, MRI, Depth + 1))
+ computeKnownFPClass(Src, DemandedElts, InterestedClasses, Known,
+ Depth + 1);
+ break;
----------------
vg0204 wrote:
There isn't any. break does not reach another case. The only thing after the switch is the scope_exit that applies nnan/ninf from this instruction, and G_FREEZE never has those flags. If
https://github.com/llvm/llvm-project/pull/223696
More information about the llvm-commits
mailing list