diff options
| author | Justin Lebar <jlebar@google.com> | 2016-07-28 23:58:15 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-07-28 23:58:15 +0000 |
| commit | 9cbc30103598be2d45e3c93991f2d356835860f5 (patch) | |
| tree | 6231ecac604f76e76743829c12c2804896362caf /llvm/lib/CodeGen | |
| parent | d240a889ad7d9be18a83f56cc723f77f74e2f8de (diff) | |
| download | bcm5719-llvm-9cbc30103598be2d45e3c93991f2d356835860f5.tar.gz bcm5719-llvm-9cbc30103598be2d45e3c93991f2d356835860f5.zip | |
Revert "Don't invoke getName() from Function::isIntrinsic().", rL276942.
This broke some out-of-tree AMDGPU tests that relied on the old behavior
wherein isIntrinsic() would return true for any function that starts
with "llvm.". And in general that change will not play nicely with
out-of-tree backends.
llvm-svn: 277087
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/WinEHPrepare.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index 28efee08581..041fb7b912b 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/lib/CodeGen/WinEHPrepare.cpp @@ -949,14 +949,10 @@ void WinEHPrepare::removeImplausibleInstructions(Function &F) { continue; // Skip call sites which are nounwind intrinsics or inline asm. - // - // FIXME: Should this check isIntrinsic() instead of - // hasLLVMReservedName? The latter is conservative. auto *CalledFn = dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts()); - if (CalledFn && - ((CalledFn->hasLLVMReservedName() && CS.doesNotThrow()) || - CS.isInlineAsm())) + if (CalledFn && ((CalledFn->isIntrinsic() && CS.doesNotThrow()) || + CS.isInlineAsm())) continue; // This call site was not part of this funclet, remove it. |

