diff options
Diffstat (limited to 'polly/test/ForwardOpTree/forward_load_indirect.ll')
-rw-r--r-- | polly/test/ForwardOpTree/forward_load_indirect.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/polly/test/ForwardOpTree/forward_load_indirect.ll b/polly/test/ForwardOpTree/forward_load_indirect.ll index 58ef66758d9..243ee2f7499 100644 --- a/polly/test/ForwardOpTree/forward_load_indirect.ll +++ b/polly/test/ForwardOpTree/forward_load_indirect.ll @@ -1,5 +1,17 @@ ; RUN: opt %loadPolly -polly-optree -analyze < %s | FileCheck %s -match-full-lines ; +; Forward an operand tree consisting of a speculatable instruction (%add) +; and a load (%val). +; +; for (int j = 0; j < n; j += 1) { +; bodyA: +; double val = B[j]; +; double add = val + 42.0; +; +; bodyB: +; A[j] = add; +; } +; define void @func(i32 %n, double* noalias nonnull %A, double* noalias nonnull %B) { entry: br label %for |