diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-10 07:23:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-10 07:23:37 +0000 |
commit | c22d4d1500cfbcf89d6dfc14ce4c2d0084c06096 (patch) | |
tree | 5cc877e8717d2f762cafe6dba322b29aa6d20b24 /test/Transforms/InstCombine | |
parent | 7cef1781761cff766320e3e904542ad02466d735 (diff) | |
download | llvm-c22d4d1500cfbcf89d6dfc14ce4c2d0084c06096.tar.gz llvm-c22d4d1500cfbcf89d6dfc14ce4c2d0084c06096.tar.bz2 llvm-c22d4d1500cfbcf89d6dfc14ce4c2d0084c06096.tar.xz |
unify the code that determines whether it is a good idea to change the type
of a computation. This fixes some infinite loops when dealing with TD that
has no native types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r-- | test/Transforms/InstCombine/cast-mul-select.ll | 2 | ||||
-rw-r--r-- | test/Transforms/InstCombine/cast.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/cast-mul-select.ll b/test/Transforms/InstCombine/cast-mul-select.ll index dac8c8b128..f55423cd1d 100644 --- a/test/Transforms/InstCombine/cast-mul-select.ll +++ b/test/Transforms/InstCombine/cast-mul-select.ll @@ -1,6 +1,6 @@ ; RUN: opt < %s -instcombine -S | FileCheck %s -target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" +target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32" define i32 @mul(i32 %x, i32 %y) { %A = trunc i32 %x to i8 diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 79f86e9ed3..e7695b74b7 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -1,6 +1,6 @@ ; Tests to make sure elimination of casts is working correctly ; RUN: opt < %s -instcombine -S | FileCheck %s -target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" +target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128-n8:16:32:64" @inbuf = external global [32832 x i8] ; <[32832 x i8]*> [#uses=1] |