- Change the horrible N^2 isRegReDefinedByTwoAddr. Now callers must supply the operan...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 10 Jul 2008 07:35:43 +0000 (07:35 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 10 Jul 2008 07:35:43 +0000 (07:35 +0000)
commitef0732d25a9882c947984ae3f2afbef5463ba00f
treefb57684794d4837a901af952c17b790c9ab2cc69
parent5dcc41f5b3daf6ef7097f169767291ff9cd0dd0b
- Change the horrible N^2 isRegReDefinedByTwoAddr. Now callers must supply the operand index of def machineoperand and at most one full scan of non-implicit operands is needed.
- Change local register allocator to use the new isRegReDefinedByTwoAddr instead of reinventing the wheel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53394 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveIntervalAnalysis.h
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/RegAllocLocal.cpp