This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel/IRTranslator resetTargetOptions based on function attributes
ClosedPublic

Authored by Petar.Avramovic on Sep 11 2020, 6:34 AM.

Details

Summary

Update TargetMachine.Options with function attributes before we start
to generate MIR instructions. This allows access to correct function
attributes via TargetMachine.Options(it used to access attributes of
function that was translated first).
This affects some existing tests with "no-nans-fp-math" attribute.
Follow-up on D87456.

Diff Detail