Improve wording of gather/scatter performance warnings.

This commit is contained in:
Matt Pharr
2012-06-08 13:32:57 -07:00
parent 27e39954d6
commit 28a821df7d

View File

@@ -3717,9 +3717,9 @@ PseudoGSToGSPass::runOnBasicBlock(llvm::BasicBlock &bb) {
callInst->setCalledFunction(info->actualFunc);
if (gotPosition && g->target.vectorWidth > 1) {
if (info->isGather)
PerformanceWarning(pos, "Gather required to compute value in expression.");
PerformanceWarning(pos, "Gather required to load value.");
else
PerformanceWarning(pos, "Scatter required for storing value.");
PerformanceWarning(pos, "Scatter required to store value.");
}
modifiedAny = true;
goto restart;