diff options
| author | Juergen Ributzka <juergen@apple.com> | 2014-03-21 06:04:45 +0000 |
|---|---|---|
| committer | Juergen Ributzka <juergen@apple.com> | 2014-03-21 06:04:45 +0000 |
| commit | f0dff49ad0869b3d8e7df9a40539132b7c88c721 (patch) | |
| tree | da9b9da726d4a35e95730426fc05028728c9c7a9 /llvm/test/Transforms/ConstantHoisting | |
| parent | 500abd48d17772ad8c1505995b6619bedebc5403 (diff) | |
| download | bcm5719-llvm-f0dff49ad0869b3d8e7df9a40539132b7c88c721.tar.gz bcm5719-llvm-f0dff49ad0869b3d8e7df9a40539132b7c88c721.zip | |
[Constant Hoisting] Make the constant materialization cost operand dependent
Extend the target hook to take also the operand index into account when
calculating the cost of the constant materialization.
Related to <rdar://problem/16381500>
llvm-svn: 204435
Diffstat (limited to 'llvm/test/Transforms/ConstantHoisting')
| -rw-r--r-- | llvm/test/Transforms/ConstantHoisting/X86/phi.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/ConstantHoisting/X86/phi.ll b/llvm/test/Transforms/ConstantHoisting/X86/phi.ll index e63c06e91a2..7134723f61a 100644 --- a/llvm/test/Transforms/ConstantHoisting/X86/phi.ll +++ b/llvm/test/Transforms/ConstantHoisting/X86/phi.ll @@ -20,10 +20,10 @@ return: ; CHECK-LABEL: @test1 ; CHECK: if.end: -; CHECK: %const_mat = add i64 %const, 1 -; CHECK-NEXT: %1 = inttoptr i64 %const_mat to i8* +; CHECK: %2 = inttoptr i64 %const to i8* +; CHECK-NEXT: br ; CHECK: return: -; CHECK-NEXT: %retval.0 = phi i8* [ null, %entry ], [ inttoptr (i64 68719476736 to i8*), %if.end ] +; CHECK-NEXT: %retval.0 = phi i8* [ null, %entry ], [ %2, %if.end ] } define void @test2(i1 %cmp, i64** %tmp) { |

