diff options
| author | Anna Thomas <anna@azul.com> | 2016-07-21 19:06:28 +0000 |
|---|---|---|
| committer | Anna Thomas <anna@azul.com> | 2016-07-21 19:06:28 +0000 |
| commit | c858faa2447720da43a59454c67819ed43945d1d (patch) | |
| tree | 30812ef5c342d5d8c54c6d1d66f501323d1b4e6e /llvm/lib/IR | |
| parent | ff9eea2278f6d01260ab917e5ee8f52d29274d7d (diff) | |
| download | bcm5719-llvm-c858faa2447720da43a59454c67819ed43945d1d.tar.gz bcm5719-llvm-c858faa2447720da43a59454c67819ed43945d1d.zip | |
Revert "Invariant start/end intrinsics overloaded for address space"
This reverts commit r276316.
llvm-svn: 276320
Diffstat (limited to 'llvm/lib/IR')
| -rw-r--r-- | llvm/lib/IR/AutoUpgrade.cpp | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp index e9f6566d6d0..a8145b66913 100644 --- a/llvm/lib/IR/AutoUpgrade.cpp +++ b/llvm/lib/IR/AutoUpgrade.cpp @@ -148,31 +148,7 @@ static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) { } break; } - case 'i': { - if (Name.startswith("invariant.start")) { - auto Args = F->getFunctionType()->params(); - Type* ObjectPtr = Args[1]; - if (F->getName() != - Intrinsic::getName(Intrinsic::invariant_start, ObjectPtr)) { - F->setName(Name + ".old"); - NewFn = Intrinsic::getDeclaration( - F->getParent(), Intrinsic::invariant_start, ObjectPtr); - return true; - } - } - if (Name.startswith("invariant.end")) { - auto Args = F->getFunctionType()->params(); - Type* ObjectPtr = Args[2]; - if (F->getName() != - Intrinsic::getName(Intrinsic::invariant_end, ObjectPtr)) { - F->setName(Name + ".old"); - NewFn = Intrinsic::getDeclaration(F->getParent(), - Intrinsic::invariant_end, ObjectPtr); - return true; - } - } - break; - } + case 'm': { if (Name.startswith("masked.load.")) { Type *Tys[] = { F->getReturnType(), F->arg_begin()->getType() }; @@ -1363,8 +1339,6 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) { return; } - case Intrinsic::invariant_start: - case Intrinsic::invariant_end: case Intrinsic::masked_load: case Intrinsic::masked_store: { SmallVector<Value *, 4> Args(CI->arg_operands().begin(), |

