[llvm-branch-commits] [llvm] InstCombine: Fold known-qnan results to a literal nan (PR #176123)

Yingwei Zheng via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jan 15 06:47:59 PST 2026


================
@@ -2028,6 +2028,8 @@ static Constant *getFPClassConstant(Type *Ty, FPClassTest Mask,
     return ConstantFP::getInfinity(Ty);
----------------
dtcxzyw wrote:

<!--__GRAPHITE_HTML_TAG_START__--><p class='graphite__hidden'><i>[Re: line +2018]</i></p><!--__GRAPHITE_HTML_TAG_END__-->
IIRC getQNaN doesn't support fp structs either.
<!--__GRAPHITE_HTML_TAG_START__--><p class='graphite__hidden'>See this comment inline on <a href="https://app.graphite.com/github/pr/llvm/llvm-project/176123?utm_source=unchanged-line-comment">Graphite</a>.</p><!--__GRAPHITE_HTML_TAG_END__-->

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


More information about the llvm-branch-commits mailing list