This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: Handle phi in computeKnownFPClass
ClosedPublic

Authored by arsenm on Apr 29 2023, 4:53 PM.

Details

Summary

Doesn't try the all the tricks computeKnownBits does.

Diff Detail

Event Timeline

arsenm created this revision.Apr 29 2023, 4:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2023, 4:53 PM
arsenm requested review of this revision.Apr 29 2023, 4:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2023, 4:53 PM
Herald added a subscriber: wdng. · View Herald Transcript

My nofpclass inference test seems to be unaffected, I'm assuming there's some attributor magic happening with the phi input values?

arsenm updated this revision to Diff 518301.Apr 30 2023, 6:34 AM

More unit tests and make it actually work

jdoerfert accepted this revision.May 1 2023, 2:51 PM

LG, though I'd prefer if we could change the signed bit stuff such that we don't need "is first", hence use 4 states and define |= properly.

This revision is now accepted and ready to land.May 1 2023, 2:51 PM
nikic added a subscriber: nikic.May 18 2023, 1:24 AM

It looks like this crashes clang during compilation of rc_quadratic.c from lencod from llvm-test-suite (https://llvm-compile-time-tracker.com/show_error.php?commit=cac9e427eb1ff3dabda8ac08968b998c3bc5ab47). Could you please revert?