Skip to content

Commit

Permalink
Clear the entering, exiting and internal ranges of a bundle before co…
Browse files Browse the repository at this point in the history
…llecting

ranges for the instruction about to be bundled. This fixes a bug in an external
project where an assertion was triggered due to spurious 'multiple defs' within
the bundle.

Patch by Ivan Llopard. Thanks Ivan!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157632 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lhames committed May 29, 2012
1 parent e236429 commit f905f69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/CodeGen/LiveIntervalAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,9 @@ class LiveIntervals::HMEditor {

BundleRanges BR = createBundleRanges(Entering, Internal, Exiting);

Entering.clear();
Internal.clear();
Exiting.clear();
collectRanges(MI, Entering, Internal, Exiting, hasRegMaskOp, OldIdx);
assert(!hasRegMaskOp && "Can't have RegMask operand in bundle.");

Expand Down

0 comments on commit f905f69

Please sign in to comment.