mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
make RLE preserve the name of the load that it replaces. This is just
a pretification of the IR. llvm-svn: 60973
This commit is contained in:
parent
1faa6258eb
commit
8753175cd6
@ -1034,6 +1034,7 @@ bool GVN::processNonLocalLoad(LoadInst *LI,
|
||||
// Perform PHI construction.
|
||||
Value* v = GetValueForBlock(LI->getParent(), LI, BlockReplValues, true);
|
||||
LI->replaceAllUsesWith(v);
|
||||
v->takeName(LI);
|
||||
if (isa<PointerType>(v->getType()))
|
||||
MD->invalidateCachedPointerInfo(v);
|
||||
toErase.push_back(LI);
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {tmp17625 =}
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {tmp17631 =}
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp17625.* = phi i32. }
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp17631 = phi i32. }
|
||||
|
||||
@last = external global [65 x i32*] ; <[65 x i32*]*> [#uses=1]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {tmp298316 =}
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp298316 = phi i32 }
|
||||
|
||||
%struct..0anon = type { i32 }
|
||||
%struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 }
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep tmp51.rle
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp47 = phi i32 }
|
||||
|
||||
%struct.anon = type { i32 (i32, i32, i32)*, i32, i32, [3 x i32], i8*, i8*, i8* }
|
||||
@debug = external constant i32 ; <i32*> [#uses=0]
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =}
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {%DEAD = phi i32. }
|
||||
|
||||
define i32 @main(i32** %p) {
|
||||
block1:
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD.rle = phi i32}
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD = phi i32 }
|
||||
; The %7 and %4 loads combine to make %DEAD unneeded.
|
||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
|
||||
target triple = "i386-apple-darwin7"
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =}
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD = phi i32 }
|
||||
|
||||
define i32 @main(i32* %p) {
|
||||
block1:
|
||||
|
Loading…
Reference in New Issue
Block a user