[PowerPC] Enforce side effects to FPSCR read/set intrinsics
authorQiu Chaofan <qiucofan@cn.ibm.com>
Thu, 4 Nov 2021 03:44:04 +0000 (11:44 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Thu, 4 Nov 2021 03:45:32 +0000 (11:45 +0800)
commita84118756c73cbd736019f311d5d459b1e94c894
tree84fc2058b91cb111662408d6c9d8131c9559b577
parent2fcffcd0e8e54f3c8c12fcfc58db4af47d5c4272
[PowerPC] Enforce side effects to FPSCR read/set intrinsics

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

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D112380
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/read-set-flm.ll