Commit d9b6ef07 authored by rpenacob's avatar rpenacob
Browse files

Forgot to set DependInfo base in the refactor

parent 336b53ef
......@@ -688,7 +688,7 @@ struct OmpSs : public ModulePass {
SmallVector<bool, 4> SymbolsSeen(TI.DependsInfo.NumSymbols, false);
auto translateDepInfo = [&](const DependInfo &DepInfo) {
Value *DepBaseDSA = DepInfo.Args[0];
Value *DepBaseDSA = DepInfo.Base;
translateDepSymbol(BBBuilder, DepInfo, DepBaseDSA,
UnpackParams[StructToIdxMap[DepBaseDSA]],
AddrTranslationTable, TI.DSAInfo.DepSymToIdx);
......@@ -713,13 +713,13 @@ struct OmpSs : public ModulePass {
translateDepInfoList(TI.DependsInfo.WeakConcurrents);
translateDepInfoList(TI.DependsInfo.WeakCommutatives);
for (auto &RedInfo : TI.DependsInfo.Reductions) {
Value *DepBaseDSA = RedInfo.DepInfo.Args[0];
Value *DepBaseDSA = RedInfo.DepInfo.Base;
translateDepSymbol(BBBuilder, RedInfo.DepInfo, DepBaseDSA,
UnpackParams[StructToIdxMap[DepBaseDSA]],
AddrTranslationTable, TI.DSAInfo.DepSymToIdx);
}
for (auto &RedInfo : TI.DependsInfo.WeakReductions) {
Value *DepBaseDSA = RedInfo.DepInfo.Args[0];
Value *DepBaseDSA = RedInfo.DepInfo.Base;
translateDepSymbol(BBBuilder, RedInfo.DepInfo, DepBaseDSA,
UnpackParams[StructToIdxMap[DepBaseDSA]],
AddrTranslationTable, TI.DSAInfo.DepSymToIdx);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment