Skip to content

Commit db90ef5

Browse files
Addressing reviewers
1 parent 4c59a94 commit db90ef5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

clang/test/CodeGen/aarch64-veclib-function-calls-linear-ptrs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --filter "call.*(frexp|modf)" --version 4
2-
// RUN: %clang --target=aarch64-linux-gnu -march=armv8-a+sve -O3 -mllvm -vector-library=ArmPL -mllvm -force-vector-interleave=1 -mllvm -prefer-predicate-over-epilogue=predicate-dont-vectorize -emit-llvm -S -o - %s | FileCheck %s
2+
// RUN: %clang --target=aarch64-linux-gnu -march=armv8-a+sve -O3 -isystem %S/../Headers/Inputs/include -mllvm -vector-library=ArmPL -mllvm -force-vector-interleave=1 -mllvm -prefer-predicate-over-epilogue=predicate-dont-vectorize -emit-llvm -S -o - %s | FileCheck %s
33

44
// REQUIRES: aarch64-registered-target
55

llvm/lib/Analysis/LoopAccessAnalysis.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -2285,11 +2285,7 @@ static bool isMathLibCallMemWriteOnly(const TargetLibraryInfo *TLI,
22852285
if (!Call)
22862286
return false;
22872287

2288-
Function *F = Call->getCalledFunction();
2289-
if (!F->hasFnAttribute(Attribute::AttrKind::Memory))
2290-
return false;
2291-
2292-
auto ME = F->getFnAttribute(Attribute::AttrKind::Memory).getMemoryEffects();
2288+
auto ME = Call->getMemoryEffects();
22932289
LibFunc Func;
22942290
TLI->getLibFunc(*Call, Func);
22952291
return ME.onlyWritesMemory() && ME.onlyAccessesArgPointees() &&

0 commit comments

Comments
 (0)