From 8ee317816607b6abef892fbc6a04ccf886518b99 Mon Sep 17 00:00:00 2001 From: "james.brodman" Date: Mon, 28 Oct 2013 16:51:02 -0400 Subject: [PATCH] Add Performance Warning --- opt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opt.cpp b/opt.cpp index 77fb9f21..bb788a8e 100644 --- a/opt.cpp +++ b/opt.cpp @@ -4998,6 +4998,8 @@ ReplaceStdlibShiftPass::runOnBasicBlock(llvm::BasicBlock &bb) { shuffleIdxs, "vecShift", ci); ci->replaceAllUsesWith(shuffle); modifiedAny = true; + } else { + PerformanceWarning(SourcePos(), "Stdlib shift() called without constant shift amount."); } } }