[InstCombine][Analysis] Move getFCmpCode and getPredForFCmpCode to CmpInstAnalysis...
authorCraig Topper <craig.topper@sifive.com>
Thu, 3 Mar 2022 17:16:20 +0000 (09:16 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 3 Mar 2022 17:33:24 +0000 (09:33 -0800)
commit608161225ef1b8d08973188f3162db9363455486
tree936314eeaff635e276ddf29fb09645068c2410c9
parent742fb134753b62f827677be92c48699d02f7f458
[InstCombine][Analysis] Move getFCmpCode and getPredForFCmpCode to CmpInstAnalysis. NFC

The similar getICmpCode and getPredForICmpCode are already there.
This moves FP for consistency.

I think InstCombine is currently the only user of both.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D120754
llvm/include/llvm/Analysis/CmpInstAnalysis.h
llvm/lib/Analysis/CmpInstAnalysis.cpp
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp