Add Performance Warning

This commit is contained in:
james.brodman
2013-10-28 16:51:02 -04:00
parent 09a6e37154
commit 8ee3178166

View File

@@ -4998,6 +4998,8 @@ ReplaceStdlibShiftPass::runOnBasicBlock(llvm::BasicBlock &bb) {
shuffleIdxs, "vecShift", ci); shuffleIdxs, "vecShift", ci);
ci->replaceAllUsesWith(shuffle); ci->replaceAllUsesWith(shuffle);
modifiedAny = true; modifiedAny = true;
} else {
PerformanceWarning(SourcePos(), "Stdlib shift() called without constant shift amount.");
} }
} }
} }