Technically increases the number of instructions if the
result isn't cast back to float. Even in this case it's
still probably a better canonical form since it enables FP value
tracking.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This doesn't really feel more canonical if we don't cast back.
I'd argue if we don't cast back we are probably about to analyze some integer operations
in which case or is more useful/recognizable than fneg/fabs.
That being said it seems we don't any of the bitwise abs/neg ops even with the
complete roundtrip: https://godbolt.org/z/Wrje68hq1
and completely support patches to handle that.
Comment Actions
If the integer was useful to downstream users, whatever it could have been should have happened already