This is an archive of the discontinued LLVM Phabricator instance.

[TargetLowering][ARM][Mips][WebAssembly] Remove the ordered FP compare from RunttimeLibcalls.def and all associated usages
ClosedPublic

Authored by craig.topper on Jan 10 2020, 12:37 PM.

Details

Summary

This always just used the same libcall as unordered, but the comparison predicate was different. This change appears to have been made when targets were given the ability to override the predicates. Before that they were hardcoded into the type legalizer. At that time we never inverted predicates and we handled ugt/ult/uge/ule compares by emitting an unordered check ORed with a ogt/olt/oge/ole checks. So only ordered needing an inverted predicate. Later ugt/ult/uge/ule were optimized to only call a single libcall and invert the compare.

This patch removes the ordered entries and just uses the inverting logic that is now present. This removes some odd things in both the Mips and WebAssembly code.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 10 2020, 12:37 PM
This revision is now accepted and ready to land.Jan 10 2020, 5:46 PM
This revision was automatically updated to reflect the committed changes.