mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 13:33:37 +02:00
dd0c248e77
The MSVC ABI requires that we generate an alias for the vtable which means looking through a GlobalAlias which cannot be overridden improves our ability to devirtualize. Found while investigating PR20801. Patch by Andrew Zhogin! Differential Revision: http://reviews.llvm.org/D11306 llvm-svn: 242955
12 lines
300 B
LLVM
12 lines
300 B
LLVM
; RUN: opt < %s -sccp -S | FileCheck %s
|
|
|
|
@0 = private unnamed_addr constant [2 x i32] [i32 -1, i32 1]
|
|
@"\01??_7A@@6B@" = unnamed_addr alias getelementptr inbounds ([2 x i32], [2 x i32]* @0, i32 0, i32 1)
|
|
|
|
; CHECK: ret i32 1
|
|
|
|
define i32 @main() {
|
|
%a = load i32, i32* @"\01??_7A@@6B@"
|
|
ret i32 %a
|
|
}
|