1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/Transforms/SCCP/bitcast.ll
Davide Italiano fc91d83173 [SCCP] Fold constants as we build them whne visiting cast instructions.
This should be slightly more efficient and could avoid spurious overdefined
markings, as Eli pointed out.

Differential Revision:  http://reviews.llvm.org/D22122

llvm-svn: 274905
2016-07-08 19:13:40 +00:00

10 lines
299 B
LLVM

; RUN: opt < %s -ipsccp -S | FileCheck %s
define i128 @vector_to_int_cast() {
%A = bitcast <4 x i32> <i32 1073741824, i32 1073741824, i32 1073741824, i32 1073741824> to i128
ret i128 %A
}
; CHECK: define i128 @vector_to_int_cast(
; CHECK-NEXT: ret i128 85070591750041656499021422275829170176