Correctly size-reduce the t2CMPzrr instruction to tCMPzr when possible.
authorJim Grosbach <grosbach@apple.com>
Fri, 3 Dec 2010 23:54:18 +0000 (23:54 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 3 Dec 2010 23:54:18 +0000 (23:54 +0000)
commited09087dd30c3150a228b14fb224a3491dd6af62
treef5afead8ada6577a12ec2e677e2046e8b2a22405
parentfb62d550de4e4f17072ac1dc76e7dfebe6ba0c05
Correctly size-reduce the t2CMPzrr instruction to tCMPzr when possible.
tCMPzhir has undefined behavior when both source registers are low registers.
rdar://8728577

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120858 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Thumb2SizeReduction.cpp