diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-07-10 23:23:54 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-07-10 23:23:54 +0000 |
commit | 138328e45cdfaff58fdbf643580563f9775e5d25 (patch) | |
tree | e5fb35ac9f1399aee02174e805e26d6324c811f0 /lldb/packages/Python/lldbsuite/test | |
parent | 329d15b5df5cb084ee0370fd1bfed56c618b0342 (diff) | |
download | bcm5719-llvm-138328e45cdfaff58fdbf643580563f9775e5d25.tar.gz bcm5719-llvm-138328e45cdfaff58fdbf643580563f9775e5d25.zip |
[SDAG] commute setcc operands to match a subtract
If we have:
R = sub X, Y
P = cmp Y, X
...then flipping the operands in the compare instruction can allow using a subtract that sets compare flags.
Motivated by diffs in D58875 - not sure if this changes anything there,
but this seems like a good thing independent of that.
There's a more involved version of this transform already in IR (in instcombine
although that seems misplaced to me) - see "swapMayExposeCSEOpportunities()".
Differential Revision: https://reviews.llvm.org/D63958
llvm-svn: 365711
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions