summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IPConstantProp/thread_local_acs.ll
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2019-11-01 18:45:25 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2019-11-02 00:32:39 -0500
commite360ee62650609112b08e4ab2249e1e5a8c9e0d0 (patch)
tree27dbae5938136db9455cf7b0649ac10bf2f661e5 /llvm/test/Transforms/IPConstantProp/thread_local_acs.ll
parented47a9cde4f667058ac34ef7805fc4093a5a4f7b (diff)
downloadbcm5719-llvm-e360ee62650609112b08e4ab2249e1e5a8c9e0d0.tar.gz
bcm5719-llvm-e360ee62650609112b08e4ab2249e1e5a8c9e0d0.zip
[Attributor][FIX] Make AAValueSimplifyArgument aware of thread-dependent constants
As in IPConstantProp, thread-dependent constants need not be propagated over callbacks. Took the comment and test from there, see also D56447.
Diffstat (limited to 'llvm/test/Transforms/IPConstantProp/thread_local_acs.ll')
-rw-r--r--llvm/test/Transforms/IPConstantProp/thread_local_acs.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Transforms/IPConstantProp/thread_local_acs.ll b/llvm/test/Transforms/IPConstantProp/thread_local_acs.ll
index 0595a5ca7f1..6e10d23c145 100644
--- a/llvm/test/Transforms/IPConstantProp/thread_local_acs.ll
+++ b/llvm/test/Transforms/IPConstantProp/thread_local_acs.ll
@@ -1,4 +1,5 @@
; RUN: opt -ipconstprop -S < %s | FileCheck %s
+; RUN: opt -S -passes=attributor -aa-pipeline='basic-aa' -attributor-disable=false -attributor-max-iterations-verify -attributor-max-iterations=1 < %s | FileCheck %s
;
; #include <threads.h>
; thread_local int gtl = 0;
OpenPOWER on IntegriCloud