HomePhabricator

[ARM] Fix IT block generation after Thumb2SizeReduce with -Oz

Authored by NickGuy on Jul 1 2020, 3:35 AM.

Description

[ARM] Fix IT block generation after Thumb2SizeReduce with -Oz

Fixes a regression caused by D82439, in which IT blocks were no longer being
generated when -Oz is present. This was due to the CPSR register being marked as
dead, while this case was not accounted for.

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