aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-25 00:15:18 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-25 00:15:18 +0000
commita334be36d4073c634b23311638c6c7fc5299f023 (patch)
tree3c7638df10fdecdd343fb4d0b226a00ec64f49a6 /lib/CodeGen/SimpleRegisterCoalescing.cpp
parent6ce14ee8be65cdbcbaca5e235c3eb28e5ec59170 (diff)
downloadexternal_llvm-a334be36d4073c634b23311638c6c7fc5299f023.zip
external_llvm-a334be36d4073c634b23311638c6c7fc5299f023.tar.gz
external_llvm-a334be36d4073c634b23311638c6c7fc5299f023.tar.bz2
Disable invalid coalescer assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 93f0cb0..ed3c243 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -853,8 +853,11 @@ SimpleRegisterCoalescing::UpdateRegDefsUses(unsigned SrcReg, unsigned DstReg,
// EAX: 1 -> AL, 2 -> AX
// So RAX's sub-register 2 is AX, RAX's sub-regsiter 3 is EAX, whose
// sub-register 2 is also AX.
+ //
+ // FIXME: Properly compose subreg indices for all targets.
+ //
if (SubIdx && OldSubIdx && SubIdx != OldSubIdx)
- assert(OldSubIdx < SubIdx && "Conflicting sub-register index!");
+ ;
else if (SubIdx)
O.setSubReg(SubIdx);
O.setReg(DstReg);