[llvm-commits] [llvm] r96720 - in /llvm/trunk: lib/Target/X86/X86ISelDAGToDAG.cpp test/CodeGen/X86/vec_ss_load_fold.ll
Chris Lattner
sabre at nondot.org
Sat Feb 20 20:53:34 PST 2010
Author: lattner
Date: Sat Feb 20 22:53:34 2010
New Revision: 96720
URL: http://llvm.org/viewvc/llvm-project?rev=96720&view=rev
Log:
fix and un-xfail X86/vec_ss_load_fold.ll
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=96720&r1=96719&r2=96720&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Sat Feb 20 22:53:34 2010
@@ -1345,9 +1345,8 @@
PatternNodeWithChain = N.getOperand(0);
if (ISD::isNON_EXTLoad(PatternNodeWithChain.getNode()) &&
PatternNodeWithChain.hasOneUse() &&
- IsProfitableToFold(N.getOperand(0), PatternNodeWithChain.getNode(),
- Root) &&
- IsLegalToFold(N.getOperand(0), PatternNodeWithChain.getNode(), Root)) {
+ IsProfitableToFold(N.getOperand(0), N.getNode(), Root) &&
+ IsLegalToFold(N.getOperand(0), N.getNode(), Root)) {
LoadSDNode *LD = cast<LoadSDNode>(PatternNodeWithChain);
if (!SelectAddr(Root, LD->getBasePtr(), Base, Scale, Index, Disp,Segment))
return false;
Modified: llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll?rev=96720&r1=96719&r2=96720&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll Sat Feb 20 22:53:34 2010
@@ -1,5 +1,4 @@
; RUN: llc < %s -march=x86 -mattr=+sse,+sse2,+sse41 | FileCheck %s
-; XFAIL: *
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8.7.2"
More information about the llvm-commits
mailing list