mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 02:14:23 +00:00
constprop doesn't delete dead instructions, it just makes them dead.
llvm-svn: 2540
This commit is contained in:
parent
fdae27abc0
commit
8916b11c77
@ -1,7 +1,7 @@
|
||||
; This is a basic sanity check for constant propogation. The add instruction
|
||||
; should be eliminated.
|
||||
|
||||
; RUN: if as < %s | opt -constprop | dis | grep add
|
||||
; RUN: if as < %s | opt -constprop -die | dis | grep add
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
; Ensure constant propogation of 'not' instructions is working correctly.
|
||||
|
||||
; RUN: if as < %s | opt -constprop | dis | grep not
|
||||
; RUN: if as < %s | opt -constprop -die | dis | grep not
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
; Ensure constant propogation of remainder instructions is working correctly.
|
||||
|
||||
; RUN: if as < %s | opt -constprop | dis | grep rem
|
||||
; RUN: if as < %s | opt -constprop -die | dis | grep rem
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user