Remove the restriction that MachineSinking is now stopped by "insert_subreg,
authorWei Mi <wmi@google.com>
Thu, 11 Aug 2016 18:42:56 +0000 (18:42 +0000)
committerWei Mi <wmi@google.com>
Thu, 11 Aug 2016 18:42:56 +0000 (18:42 +0000)
commitec19b35179bcbe4ac4e3d6dfa62d374553099aed
treec35bb50c7cb8f3b2f57b13dea543e491e86449e1
parenta003b7639164279bf5afdabe5c7b3d53f1039313
Remove the restriction that MachineSinking is now stopped by "insert_subreg,
subreg_to_reg, and reg_sequence" instructions.

This is to solve PR28852. The restriction was added at 2010 to make better register
coalescing. We assumed that it was not necessary any more. Testing results on x86
supported the assumption.

We will look closely to any performance impact it will bring and will be prepared
to help analyzing performance problem found on other architectures.

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

llvm-svn: 278384
llvm/include/llvm/Target/TargetInstrInfo.h
llvm/test/CodeGen/X86/MachineSink-SubReg.ll [new file with mode: 0644]