File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -1001,20 +1001,6 @@ void ByteCodeUsesInstr::AggregateFollowingByteCodeUses()
1001
1001
}
1002
1002
}
1003
1003
1004
- void ByteCodeUsesInstr::AggregatePrecedingByteCodeUses ()
1005
- {
1006
- IR::Instr * instr = this ->m_prev ;
1007
- while (instr && CanAggregateByteCodeUsesAcrossInstr (instr))
1008
- {
1009
- if (instr->IsByteCodeUsesInstr () && instr->GetByteCodeOffset () == this ->GetByteCodeOffset ())
1010
- {
1011
- IR::ByteCodeUsesInstr* precedingByteCodeUsesInstr = instr->AsByteCodeUsesInstr ();
1012
- this ->Aggregate (precedingByteCodeUsesInstr);
1013
- }
1014
- instr = instr->m_prev ;
1015
- }
1016
- }
1017
-
1018
1004
void ByteCodeUsesInstr::Aggregate (ByteCodeUsesInstr * byteCodeUsesInstr)
1019
1005
{
1020
1006
Assert (this ->m_func == byteCodeUsesInstr->m_func );
@@ -1037,7 +1023,7 @@ void ByteCodeUsesInstr::Aggregate(ByteCodeUsesInstr * byteCodeUsesInstr)
1037
1023
1038
1024
bool Instr::CanAggregateByteCodeUsesAcrossInstr (Instr * instr)
1039
1025
{
1040
- return !instr->EndsBasicBlock () &&
1026
+ return !instr->StartsBasicBlock () &&
1041
1027
instr->m_func == this ->m_func &&
1042
1028
((instr->GetByteCodeOffset () == Js::Constants::NoByteCodeOffset) ||
1043
1029
(instr->GetByteCodeOffset () == this ->GetByteCodeOffset ()));
Original file line number Diff line number Diff line change @@ -579,7 +579,6 @@ class ByteCodeUsesInstr : public Instr
579
579
// problems because we end up with an instruction losing atomicity in terms of its
580
580
// bytecode use and generation lifetimes.
581
581
void AggregateFollowingByteCodeUses ();
582
- void AggregatePrecedingByteCodeUses ();
583
582
584
583
private:
585
584
void Aggregate (ByteCodeUsesInstr * byteCodeUsesInstr);
You can’t perform that action at this time.
0 commit comments