Improve wording of gather/scatter performance warnings.
This commit is contained in:
4
opt.cpp
4
opt.cpp
@@ -3717,9 +3717,9 @@ PseudoGSToGSPass::runOnBasicBlock(llvm::BasicBlock &bb) {
|
|||||||
callInst->setCalledFunction(info->actualFunc);
|
callInst->setCalledFunction(info->actualFunc);
|
||||||
if (gotPosition && g->target.vectorWidth > 1) {
|
if (gotPosition && g->target.vectorWidth > 1) {
|
||||||
if (info->isGather)
|
if (info->isGather)
|
||||||
PerformanceWarning(pos, "Gather required to compute value in expression.");
|
PerformanceWarning(pos, "Gather required to load value.");
|
||||||
else
|
else
|
||||||
PerformanceWarning(pos, "Scatter required for storing value.");
|
PerformanceWarning(pos, "Scatter required to store value.");
|
||||||
}
|
}
|
||||||
modifiedAny = true;
|
modifiedAny = true;
|
||||||
goto restart;
|
goto restart;
|
||||||
|
|||||||
Reference in New Issue
Block a user