[PATCH] D147932: ValueTracking: Implement computeKnownFPClass for various rounding intrinsics
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 16 06:57:19 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:4873-4874
FPClassTest InterestedSrcs = InterestedClasses;
if (InterestedClasses & fcZero)
- InterestedClasses |= fcNormal | fcSubnormal;
+ InterestedSrcs |= fcNormal | fcSubnormal;
----------------
foad wrote:
> This doesn't seem to match the code any more? I guess you want:
> ```
> if (InterestedClass & fcPosFinite)
> InterestedSrcs |= fcPosFinite;
> ```
> etc.
>
> (Strictly I think you ought to do this for fcNan too, throughout computeKnownFPClass, in case InterestedClasses only contains one of fcSNan or fcQNan.)
I don't see the point of enabling more bits here, not sure why I put this here in the first place
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147932/new/
https://reviews.llvm.org/D147932
More information about the llvm-commits
mailing list