mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 23:26:31 +00:00
Fixes a bug in the DAGCombiner. LoadSDNodes have two values (data, chain).
If there is a store after the load node, then there is a chain, which means that there is another user. Thus, asking hasOneUser would fail. Instead we ask hasNUsesOfValue on the 'data' value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131183 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
; RUN: llc < %s -march=x86 -mattr=+sse41 -o %t
|
||||
; RUN: grep extractps %t | count 1
|
||||
; RUN: grep pextrd %t | count 1
|
||||
; RUN: llc < %s -mcpu=corei7 -march=x86 -mattr=+sse41 -o %t
|
||||
; RUN: not grep extractps %t
|
||||
; RUN: not grep pextrd %t
|
||||
; RUN: not grep pshufd %t
|
||||
; RUN: not grep movss %t
|
||||
; RUN: grep movss %t | count 2
|
||||
|
||||
define void @t1(float* %R, <4 x float>* %P1) nounwind {
|
||||
%X = load <4 x float>* %P1
|
||||
|
Reference in New Issue
Block a user