apply divergence analysis for replicating local variables

This commit is contained in:
Ruobing Han 2022-09-22 16:24:16 -04:00
parent e99205aa8b
commit ed51e5af91
1 changed files with 3 additions and 0 deletions

View File

@ -343,6 +343,9 @@ void handle_local_variable_intra_warp(std::vector<ParallelRegion> PRs,
allStoreNonDivergence = false; allStoreNonDivergence = false;
break; break;
} }
} else if (!isa<LoadInst>(user)) {
allStoreNonDivergence = false;
break;
} }
} }
if (allStoreNonDivergence) { if (allStoreNonDivergence) {