This is an archive of the discontinued LLVM Phabricator instance.

[flang] Avoid code duplication in mixed expressions
ClosedPublic

Authored by klausler on Dec 14 2021, 8:07 AM.

Details

Reviewers
jeanPerier
Summary

Rather than represent the mixed real/complex subexpression x*(a,b)
as (x*a,x*b), use (x,0)*(a,b) to avoid a potential code duplication
in current lowering code. Same for mixed division, and for mixed
integer*complex and integer/complex cases.

Diff Detail

Event Timeline

klausler created this revision.Dec 14 2021, 8:07 AM
klausler requested review of this revision.Dec 14 2021, 8:07 AM
jeanPerier accepted this revision.Dec 15 2021, 9:29 AM

Looks good, thanks !

This revision is now accepted and ready to land.Dec 15 2021, 9:29 AM
klausler closed this revision.Jan 4 2022, 11:30 AM