summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86InstrInfo.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-08-19 21:18:46 +0000
committerSanjay Patel <spatel@rotateright.com>2015-08-19 21:18:46 +0000
commit4e3ee1e548a28eb72c235dd70117997c7691424e (patch)
tree7ff41cb1045273aab4d372d5d2d8a9ed402fca74 /llvm/lib/Target/X86/X86InstrInfo.cpp
parent35f528262f47d283023ed0c6a2d12d1da4bc2df3 (diff)
downloadbcm5719-llvm-4e3ee1e548a28eb72c235dd70117997c7691424e.tar.gz
bcm5719-llvm-4e3ee1e548a28eb72c235dd70117997c7691424e.zip
[x86] enable machine combiner reassociations for scalar single-precision maximums
llvm-svn: 245504
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index bd3a3e5165d..d9ee8b3c6d0 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -6394,7 +6394,9 @@ static bool isAssociativeAndCommutative(const MachineInstr &Inst) {
// Normal min/max instructions are not commutative because of NaN and signed
// zero semantics, but these are. Thus, there's no need to check for global
// relaxed math; the instructions themselves have the properties we need.
+ case X86::MAXCSSrr:
case X86::MINCSSrr:
+ case X86::VMAXCSSrr:
case X86::VMINCSSrr:
return true;
case X86::ADDPDrr:
OpenPOWER on IntegriCloud