If the CPSR is defined by a copy, then we don't want to merge it into an IT
authorBill Wendling <isanbard@gmail.com>
Mon, 10 Oct 2011 22:52:53 +0000 (22:52 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 10 Oct 2011 22:52:53 +0000 (22:52 +0000)
commit721e1d266902f4d906645b130d1b2a905d75fa31
tree476aea771473c203581b03cf7d93735432301c92
parentdca62d53b74164364b3eaa58df3a284cf86fa016
If the CPSR is defined by a copy, then we don't want to merge it into an IT
block. E.g., if we have:

  movs  r1, r1
  rsb   r1, 0
  movs  r2, r2
  rsb   r2, 0

we don't want this to be converted to:

  movs  r1, r1
  movs  r2, r2
  itt   mi
  rsb   r1, 0
  rsb   r2, 0

PR11107 & <rdar://problem/10259534>

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