aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
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
commit85d4fdfe37a4013084929037455fcc8918b0679d (patch)
tree949c2ee225013c0f910fbb7b94b06c3573d5e3e0 /llvm/lib
parent71671131c33f9bd224e0709eaaddfd145f4e1c78 (diff)
downloadllvm-85d4fdfe37a4013084929037455fcc8918b0679d.zip
llvm-85d4fdfe37a4013084929037455fcc8918b0679d.tar.gz
llvm-85d4fdfe37a4013084929037455fcc8918b0679d.tar.bz2
Flags-producing add, and, or, etc. have the same profibility
rules as normal add, and, or, etc. llvm-svn: 92507
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelDAGToDAG.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index cb82383..c028376 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/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: