Add TargetInstrInfo::isSafeToMoveRegisterClassDefs. It returns true if it's safe...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 6 Feb 2009 17:17:30 +0000 (17:17 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 6 Feb 2009 17:17:30 +0000 (17:17 +0000)
commit4350eb86a7cdc83fa6a5f4819a7f0534ace5cd58
tree832a8134aebec5dbb85db231c42c9dc2727c4ec6
parentb3a021cdb3d26ddb2985e326ba0cb96761b86f69
Add TargetInstrInfo::isSafeToMoveRegisterClassDefs. It returns true if it's safe to move an instruction which defines a value in the register class. Replace pre-splitting specific IgnoreRegisterClassBarriers with this new hook.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63936 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/PreAllocSplitting.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h