diff options
author | Duncan Sands <baldrick@free.fr> | 2012-07-26 09:26:40 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-07-26 09:26:40 +0000 |
commit | 20b2d21509b3d5a10ec5d7be6dea8afa9e92fdee (patch) | |
tree | daebc7604cfb9311f7d2990c3402f46fa76f1a5f /test/Transforms | |
parent | 52a111fe1aa10e5e499d8bccc225052ae06f1941 (diff) | |
download | external_llvm-20b2d21509b3d5a10ec5d7be6dea8afa9e92fdee.zip external_llvm-20b2d21509b3d5a10ec5d7be6dea8afa9e92fdee.tar.gz external_llvm-20b2d21509b3d5a10ec5d7be6dea8afa9e92fdee.tar.bz2 |
Stop reassociate from looking through expressions of arbitrary complexity. This
is a temporary measure until my fix for PR13021 is ready.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/Reassociate/2012-05-08-UndefLeak.ll | 2 | ||||
-rw-r--r-- | test/Transforms/Reassociate/mightymul.ll | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/test/Transforms/Reassociate/2012-05-08-UndefLeak.ll b/test/Transforms/Reassociate/2012-05-08-UndefLeak.ll index 1e522e6..2f5a53e 100644 --- a/test/Transforms/Reassociate/2012-05-08-UndefLeak.ll +++ b/test/Transforms/Reassociate/2012-05-08-UndefLeak.ll @@ -1,6 +1,8 @@ ; RUN: opt < %s -reassociate -S | FileCheck %s ; PR12169 ; PR12764 +; XFAIL: * +; Transform disabled until PR13021 is fixed. define i64 @f(i64 %x0) { ; CHECK: @f diff --git a/test/Transforms/Reassociate/mightymul.ll b/test/Transforms/Reassociate/mightymul.ll new file mode 100644 index 0000000..cfbc485 --- /dev/null +++ b/test/Transforms/Reassociate/mightymul.ll @@ -0,0 +1,35 @@ +; RUN: opt < %s -reassociate +; PR13021 + +define i32 @foo(i32 %x) { + %t0 = mul i32 %x, %x + %t1 = mul i32 %t0, %t0 + %t2 = mul i32 %t1, %t1 + %t3 = mul i32 %t2, %t2 + %t4 = mul i32 %t3, %t3 + %t5 = mul i32 %t4, %t4 + %t6 = mul i32 %t5, %t5 + %t7 = mul i32 %t6, %t6 + %t8 = mul i32 %t7, %t7 + %t9 = mul i32 %t8, %t8 + %t10 = mul i32 %t9, %t9 + %t11 = mul i32 %t10, %t10 + %t12 = mul i32 %t11, %t11 + %t13 = mul i32 %t12, %t12 + %t14 = mul i32 %t13, %t13 + %t15 = mul i32 %t14, %t14 + %t16 = mul i32 %t15, %t15 + %t17 = mul i32 %t16, %t16 + %t18 = mul i32 %t17, %t17 + %t19 = mul i32 %t18, %t18 + %t20 = mul i32 %t19, %t19 + %t21 = mul i32 %t20, %t20 + %t22 = mul i32 %t21, %t21 + %t23 = mul i32 %t22, %t22 + %t24 = mul i32 %t23, %t23 + %t25 = mul i32 %t24, %t24 + %t26 = mul i32 %t25, %t25 + %t27 = mul i32 %t26, %t26 + %t28 = mul i32 %t27, %t27 + ret i32 %t28 +} |