aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-04 20:51:50 +0000
committerDan Gohman <gohman@apple.com>2010-01-04 20:51:50 +0000
commit9ef51c801152084239feae34be87c55c60b168df (patch)
treef54cc5a87887a609d8f18a3bc2c9f9c9ee63065f /lib/Target
parent43ffe6769a98bb3c60465fe93cc757a35e26e3c6 (diff)
downloadexternal_llvm-9ef51c801152084239feae34be87c55c60b168df.zip
external_llvm-9ef51c801152084239feae34be87c55c60b168df.tar.gz
external_llvm-9ef51c801152084239feae34be87c55c60b168df.tar.bz2
Flags-producing add, and, or, etc. have the same profibility
rules as normal add, and, or, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86ISelDAGToDAG.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp
index cb82383..c028376 100644
--- a/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -310,6 +310,11 @@ bool X86DAGToDAGISel::IsLegalAndProfitableToFold(SDNode *N, SDNode *U,
if (U == Root)
switch (U->getOpcode()) {
default: break;
+ case X86ISD::ADD:
+ case X86ISD::SUB:
+ case X86ISD::AND:
+ case X86ISD::XOR:
+ case X86ISD::OR:
case ISD::ADD:
case ISD::ADDC:
case ISD::ADDE: