Bring back int_x86_sse2_movl_dq intrinsic for backward compatibility. Make sure

it's auto-upgraded to a shufflevector instruction.

llvm-svn: 45131
This commit is contained in:
Evan Cheng
2007-12-17 22:33:23 +00:00
parent c5cccb9e60
commit 0e179d015f
6 changed files with 78 additions and 26 deletions

View File

@@ -873,7 +873,8 @@ bool BitcodeReader::ParseModule(const std::string &ModuleID) {
// Look for intrinsic functions which need to be upgraded at some point
for (Module::iterator FI = TheModule->begin(), FE = TheModule->end();
FI != FE; ++FI) {
if (Function* NewFn = UpgradeIntrinsicFunction(FI))
Function* NewFn;
if (UpgradeIntrinsicFunction(FI, NewFn))
UpgradedIntrinsics.push_back(std::make_pair(FI, NewFn));
}