Add Performance Warning
This commit is contained in:
2
opt.cpp
2
opt.cpp
@@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user