mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 01:06:05 +00:00
[BasicAliasAnalysis] Do not check ModRef table for intrinsics
All possible ModRef behaviours can be completely represented using existing LLVM IR attributes. Differential Revision: http://reviews.llvm.org/D12033 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f317669480
commit
d9a2fcb1eb
@ -532,13 +532,6 @@ BasicAliasAnalysis::getModRefBehavior(const Function *F) {
|
||||
if (F->doesNotAccessMemory())
|
||||
return FMRB_DoesNotAccessMemory;
|
||||
|
||||
// For intrinsics, we can check the table.
|
||||
if (Intrinsic::ID iid = F->getIntrinsicID()) {
|
||||
#define GET_INTRINSIC_MODREF_BEHAVIOR
|
||||
#include "llvm/IR/Intrinsics.gen"
|
||||
#undef GET_INTRINSIC_MODREF_BEHAVIOR
|
||||
}
|
||||
|
||||
FunctionModRefBehavior Min = FMRB_UnknownModRefBehavior;
|
||||
|
||||
// If the function declares it only reads memory, go with that.
|
||||
|
Loading…
x
Reference in New Issue
Block a user