summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-28 07:46:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-28 07:46:38 +0000
commite526d8a95568f356d68b601f6037125dde8078ed (patch)
treef77d176ea257d8662d208c1f89319e5522f91fd8
parent643afa55e72835e5e17c9f33876b883469d56814 (diff)
downloadllvm-e526d8a95568f356d68b601f6037125dde8078ed.tar.gz
llvm-e526d8a95568f356d68b601f6037125dde8078ed.tar.bz2
llvm-e526d8a95568f356d68b601f6037125dde8078ed.tar.xz
Set to default: x86 no longer fold and into test if it has more than one use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47711 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86ISelDAGToDAG.cpp2
-rw-r--r--test/CodeGen/X86/test-nofold.ll1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp
index 75e9faecb2..aa45ab8e92 100644
--- a/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -48,7 +48,7 @@ namespace {
static cl::opt<bool>
AlwaysFoldAndInTest("always-fold-and-in-test",
cl::desc("Always fold and operation in test"),
- cl::init(true), cl::Hidden);
+ cl::init(false), cl::Hidden);
}
//===----------------------------------------------------------------------===//
diff --git a/test/CodeGen/X86/test-nofold.ll b/test/CodeGen/X86/test-nofold.ll
index 7ee8eb0b9c..a24a9a0940 100644
--- a/test/CodeGen/X86/test-nofold.ll
+++ b/test/CodeGen/X86/test-nofold.ll
@@ -1,6 +1,5 @@
; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep {testl.*%e.x.*%e.x}
; rdar://5752025
-; XFAIL: *
; We don't want to fold the and into the test, because the and clobbers its
; input forcing a copy. We want: