summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2019-10-31 20:15:02 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2019-11-02 00:28:24 -0500
commitc36e2ebf9ff5fa869bd5717616e71a0d406d0306 (patch)
tree08e4c56068a153ba8a11f1ebc098abc53b517418 /llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll
parent0437bfcc8338ec79f1d209daf975b9555e51e4b1 (diff)
downloadbcm5719-llvm-c36e2ebf9ff5fa869bd5717616e71a0d406d0306.tar.gz
bcm5719-llvm-c36e2ebf9ff5fa869bd5717616e71a0d406d0306.zip
[Attributor][NFCI] Avoid unnecessary work except for testing
Trying to deduce information for declarations and calls sites of declarations is not useful in practice but only for testing. Add a flag that disables this by default but also enable it in the tests. The misc.ll test will verify the flag "works" as expected.
Diffstat (limited to 'llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll')
-rw-r--r--llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll b/llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll
index 04313cf0e77..37027074985 100644
--- a/llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll
+++ b/llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll
@@ -1,4 +1,4 @@
-; RUN: opt -passes=attributor --attributor-disable=false -S < %s | FileCheck %s
+; RUN: opt -passes=attributor --attributor-disable=false -attributor-annotate-decl-cs -S < %s | FileCheck %s
declare noalias i8* @malloc(i64)
OpenPOWER on IntegriCloud