mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Allow GVN to eliminate read-only function calls when it can detect that they are redundant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
; RUN: llvm-as < %s | opt -basicaa -gvn | llvm-dis | grep TestConst | count 2
|
||||
; RUN: llvm-as < %s | opt -basicaa -gvn | llvm-dis | grep TestPure | not count 2
|
||||
; RUN: llvm-as < %s | opt -basicaa -gvn | llvm-dis | grep TestPure | count 3
|
||||
; RUN: llvm-as < %s | opt -basicaa -gvn | llvm-dis | grep TestNone | count 4
|
||||
@g = global i32 0 ; <i32*> [#uses=1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user