]> granicus.if.org Git - llvm/commit
Merging r223328:
authorHal Finkel <hfinkel@anl.gov>
Tue, 9 Dec 2014 02:37:11 +0000 (02:37 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 9 Dec 2014 02:37:11 +0000 (02:37 +0000)
commitb6c3a6cbdfaf748da5c8112afcdd5f40b71e4277
tree8727b43c79db6eec4b68e0b309f96c3a388efddf
parentb45b9d67668677559fe24cb08f381d37e89c8114
Merging r223328:
------------------------------------------------------------------------
r223328 | hfinkel | 2014-12-04 00:46:20 +0000 (Thu, 04 Dec 2014) | 8 lines

[PowerPC] 'cc' should be an alias only to 'cr0'

We had mistakenly believed that GCC's 'cc' referred to the entire
condition-code register (cr0 through cr7) -- and implemented this in r205630 to
fix PR19326, but 'cc' is actually an alias only to 'cr0'. This is causing LLVM
to clobber too much with legacy code with inline asm using the 'cc' clobber.

Fixes PR21451.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@223747 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCRegisterInfo.td
test/CodeGen/PowerPC/cc.ll