Set the floating point status register as reserved
authorPengfei Wang <pengfei.wang@intel.com>
Mon, 4 Nov 2019 07:13:51 +0000 (23:13 -0800)
committerPengfei Wang <pengfei.wang@intel.com>
Mon, 4 Nov 2019 07:14:34 +0000 (23:14 -0800)
commit8d7ccb37440e11552cb4a0bb989ddee5031700a4
tree7fbf66ee65eb11bae85b4600b66170b50b3909af
parent31e14f41a21f9016050a20f07d5da03db2e8c13e
 Set the floating point status register as reserved

Summary:
This patch sets the FPSW (X87 floating-point status register) as a reserved
physical register and fix the test failure caused by [[ https://reviews.llvm.org/D68854| D68854 ]].

Before this patch, some tests will fail because it implicit uses FPSW without
define it. Setting the FPSW as a reserved physical register will skip liveness
analysis because it is always live.

Reviewers: pengfei, craig.topper

Reviewed By: craig.topper

Subscribers: craig.topper, hiraditya, llvm-commits

Patch by LiuChen.

Differential Revision: https://reviews.llvm.org/D69784
llvm/lib/Target/X86/X86RegisterInfo.cpp
llvm/test/CodeGen/X86/pr34080-2.ll