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."); } } }