This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Enforce side effects to FPSCR read/set instructions
ClosedPublic

Authored by qiucf on Oct 24 2021, 9:36 AM.

Details

Summary

Currently, FPSCR is not modeled, so in some early passes (such as early-cse), the read/set intrinsics to FPSCR may get incorrect simplification.

Diff Detail

Event Timeline

qiucf created this revision.Oct 24 2021, 9:36 AM
qiucf requested review of this revision.Oct 24 2021, 9:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2021, 9:36 AM
jsji added inline comments.Oct 24 2021, 7:55 PM
llvm/lib/Target/PowerPC/PPCInstrInfo.td
3113

SETFLM is expanded into MTFSF, why setting MTFSFb only here?

How about MTFSFIb, MTFSFI, MTFSF etc?

qiucf updated this revision to Diff 382359.Oct 26 2021, 9:10 AM
qiucf marked an inline comment as done.
jsji accepted this revision as: jsji.Nov 1 2021, 10:08 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Nov 1 2021, 10:08 AM
This revision was landed with ongoing or failed builds.Nov 3 2021, 8:46 PM
This revision was automatically updated to reflect the committed changes.