HomePhabricator

[PowerPC] Clear the sideeffect bit for those instructions that didn't have the…

Authored by QingShan Zhang <48825004@qq.com> on Oct 30 2019, 12:56 AM.

Description

[PowerPC] Clear the sideeffect bit for those instructions that didn't have the match pattern

If the instruction have match pattern, llvm-tblgen will infer the sideeffect bit from the match pattern and it works well.
If not, the tblgen will set it as true that hurt the scheduling.

PowerPC has some instructions that didn't specify the match pattern(i.e. LXSD etc), which is manually selected post-ra according
to the register pressure. We need to clear the sideeffect flag for these instructions.

Differential Revision: https://reviews.llvm.org/D69232