This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: Make computeKnownFPClass respect UseInstrInfo
Needs ReviewPublic

Authored by arsenm on Jul 17 2023, 4:25 AM.

Details

Summary

Don't really know why you would want to use this and I still think the
argument name is unclear.

Diff Detail

Event Timeline

arsenm created this revision.Jul 17 2023, 4:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2023, 4:25 AM
arsenm requested review of this revision.Jul 17 2023, 4:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2023, 4:25 AM
Herald added a subscriber: wdng. · View Herald Transcript

ping, should avoid regressing this behavior for the release now that all the old functions are gone

jcranmer-intel added inline comments.Jul 21 2023, 2:30 PM
llvm/unittests/Analysis/ValueTrackingTest.cpp
2010

Why is nofpclass being looked at for UseInstrInfo = false? It doesn't make much sense for nnan and nofpclass(nan) to be treated differently...

arsenm added inline comments.Jul 21 2023, 3:51 PM
llvm/unittests/Analysis/ValueTrackingTest.cpp
2010

I don't really know what UseInstrInfo is supposed to mean, but this matched the previous behavior. The parameter is undocumented and based on SimplifyQuery it means "don't use flags" for an uncertain definition of flags.

arsenm updated this revision to Diff 554757.Aug 30 2023, 9:43 AM

Also ignore nofpclass

ping

llvm/unittests/Analysis/ValueTrackingTest.cpp
2010

My guess is this should also skip using assumes, but that also has never happened