diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-01-06 22:21:25 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-01-06 22:21:25 +0000 |
commit | 80c2b0d9efc951b23f90a3cf12b9853177994961 (patch) | |
tree | 9e68bafd66f0a90916184541db40b106edc01ed9 /lib/CodeGen/CriticalAntiDepBreaker.h | |
parent | 130063207de67ecb36e5c80b9118f3c0817fbc6f (diff) | |
download | llvm-80c2b0d9efc951b23f90a3cf12b9853177994961.tar.gz llvm-80c2b0d9efc951b23f90a3cf12b9853177994961.tar.bz2 llvm-80c2b0d9efc951b23f90a3cf12b9853177994961.tar.xz |
Anti-dependency breaking needs to be careful regarding instructions with
multiple register definitions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CriticalAntiDepBreaker.h')
-rw-r--r-- | lib/CodeGen/CriticalAntiDepBreaker.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CriticalAntiDepBreaker.h b/lib/CodeGen/CriticalAntiDepBreaker.h index 3740667193..9e8db02262 100644 --- a/lib/CodeGen/CriticalAntiDepBreaker.h +++ b/lib/CodeGen/CriticalAntiDepBreaker.h @@ -88,7 +88,8 @@ namespace llvm { private: void PrescanInstruction(MachineInstr *MI); void ScanInstruction(MachineInstr *MI, unsigned Count); - unsigned findSuitableFreeRegister(unsigned AntiDepReg, + unsigned findSuitableFreeRegister(MachineInstr *MI, + unsigned AntiDepReg, unsigned LastNewReg, const TargetRegisterClass *); }; |