[X86] Make EmitCmp into a static function and explicitly return chain result for...
authorCraig Topper <craig.topper@gmail.com>
Fri, 20 Dec 2019 06:30:23 +0000 (22:30 -0800)
committerCraig Topper <craig.topper@gmail.com>
Fri, 20 Dec 2019 07:03:15 +0000 (23:03 -0800)
commitbf507d4259c389cc21d44760b8ebf462edd8e5d0
tree87a8be2286dea493165a57b0e14d8fa6b6635c8b
parent9b6fafa3990fb5963f0558d13d53abc461fb3f29
[X86] Make EmitCmp into a static function and explicitly return chain result for STRICT_FCMP. NFCI

The only thing its getting from the X86TargetLowering class is
the subtarget which we can easily pass. This function only has
one call site now since this might help the compiler inline it.

Explicitly return both the flag result and the chain result for
STRICT_FCMP nodes. This removes an assumption in the caller that
getValue(1) is the right way to get the chain.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.h