InstCombine also should have taken care of this, but this
should be helpful when the fcmp based lowering strategy tries
to combine multiple tests.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
What is the advantage of such lowering?
Implementation of is_fpclass as fcmp requires materialization of infinity constant. In contrast to zero constant, which often can be easily materialized, infinity usually requires loading constant from memory. So additional memory access is required as compared to the default lowering.
Comment Actions
This also avoids a register bank copy if the target has separate integer and FP banks