Commute the internal flag on MachineOperands.
authorPete Cooper <peter_cooper@apple.com>
Thu, 30 Apr 2015 23:14:14 +0000 (23:14 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 30 Apr 2015 23:14:14 +0000 (23:14 +0000)
commit451755d370a14a507df79760b078087da7f60c9c
tree0a928e0933708866d984499b027dbb0a59153518
parentd1ffdda41830d90d8bcc4e94f3688c78b558c6c8
Commute the internal flag on MachineOperands.

When commuting a thumb instruction in the size reduction pass, thumb
instructions are represented as a bundle and so some operands may be marked
as internal.  The internal flag has to move with the operand when commuting.

This test is sensitive to register allocation so can't specifically check that
this error was happening, but so long as it continues to pass with -verify then
hopefully its still ok.

rdar://problem/20752113

llvm-svn: 236282
llvm/lib/CodeGen/TargetInstrInfo.cpp
llvm/test/CodeGen/ARM/thumb2-size-reduction-internal-flags.ll [new file with mode: 0644]