This is an archive of the discontinued LLVM Phabricator instance.

[Fixed Point] Move the compassign LHS type correction a bit further down. NFCI.
ClosedPublic

Authored by ebevhan on Apr 16 2020, 6:08 AM.

Details

Summary

We can simplify the LHSTy correction for
fixed-point compassign by moving it below
the point where we know we have a compound
assignment.

Also, we shouldn't look at the LHS and RHS
separately; look at the computation result
type instead.

Looking at the LHS and RHS is also wrong
for compassigns with fixed and floating
point (though this does not work upstream
yet).

Diff Detail

Event Timeline

ebevhan created this revision.Apr 16 2020, 6:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 16 2020, 6:08 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Apr 16 2020, 11:45 AM
This revision was automatically updated to reflect the committed changes.