Page MenuHomePhabricator

[FPEnv][AArch64] Add lowering and instruction selection for strict conversions

Authored by john.brawn on Jan 29 2020, 6:41 AM.



Strict fp-to-int and int-to-fp conversions can be handled in the same way that the non-strict versions are (by using the appropriate instruction or converting to a function call when we have no instruction).

Diff Detail

Event Timeline

john.brawn created this revision.Jan 29 2020, 6:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 29 2020, 6:41 AM
pengfei added inline comments.Jan 29 2020, 6:25 PM

I think you may need add option "-disable-strictnode-mutation" to ensure the code generation doesn't come from mutation before strict FP default enabled. The same to other patches.

john.brawn marked an inline comment as done.Jan 30 2020, 3:36 AM
john.brawn added inline comments.

Currently a lot of it is coming from strict node mutation. The tests here are primarily for making sure opt doesn't crash with an assertion if you're using it with the default options.

dmgreen accepted this revision.Jan 30 2020, 4:00 AM



Can you format this whilst you are here.

This revision is now accepted and ready to land.Jan 30 2020, 4:00 AM
This revision was automatically updated to reflect the committed changes.
carwil added a subscriber: carwil.Jan 30 2020, 7:03 AM