Copy through the low bits and only apply an f32
copysign to the high half.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This mostly improves the cases involving constants. The actual width reduction is effectively what the codegen already, so there's a narrow range of second order improvements available from other combines
Comment Actions
This mostly improves the cases involving constants.
It would be nice to see a test case that demonstrates that.
Comment Actions
See s_test_copysign_f64_0_mag, it let a constant fold into an operand and avoided a BFI (I'm adding this test in a precommit)