Skip to content
Commit c3983c34 authored by Craig Topper's avatar Craig Topper
Browse files

[X86] Make sure we use FSUB instruction as the reference for operand order in...

[X86] Make sure we use FSUB instruction as the reference for operand order in isAddSubOrSubAdd when recognizing subadd

The FADD part of the addsub/subadd pattern can have its operands commuted, but when checking for fsubadd we were using the fadd as reference and commuting the fsub node.

llvm-svn: 327660
parent 46502fa2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment