mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Added comment explaining why we are doing this check.
llvm-svn: 43353
This commit is contained in:
parent
9749790ef5
commit
34d5118422
@ -272,6 +272,11 @@ static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1,
|
||||
while (I1 != MBB1->begin() && I2 != MBB2->begin()) {
|
||||
--I1; --I2;
|
||||
if (!I1->isIdenticalTo(I2) ||
|
||||
// XXX: This check is dubious. It's used to get around a problem where
|
||||
// people incorrectly expect inline asm directives to remain in the same
|
||||
// relative order. This is untenable because normal compiler
|
||||
// optimizations (like this one) may reorder and/or merge these
|
||||
// directives.
|
||||
I1->getOpcode() == TargetInstrInfo::INLINEASM) {
|
||||
++I1; ++I2;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user