UE-3019: limex_compile: correctly access the dominator map

This commit is contained in:
Alex Coyte 2016-08-31 10:50:46 +10:00 committed by Matthew Barr
parent f4fa6cd4dd
commit 97483eee5b

View File

@ -762,8 +762,9 @@ u32 getEffectiveAccelStates(const build_info &args,
* prevent .* 'truly' dominating */
for (u32 local_accel_mask = active_accel_mask; local_accel_mask; ) {
u32 accel_id = findAndClearLSB_32(&local_accel_mask);
assert(accel_id < accelStates.size());
NFAVertex v = accelStates[accel_id].v;
while (contains(dom_map, v)) {
while (dom_map[v]) {
v = dom_map[v];
if (contains(accel_id_map, v)) {
dominated_by[accel_id] |= 1U << accel_id_map[v];