[PATCH] D27781: [X86] Fold (setcc (cmp (atomic_load_add x, -C) C), COND) to (setcc (LADD x, -C), COND) (PR31367)

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 16:07:02 PST 2016

rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

We stared at this for a while and convinced ourselves that it is correct. (cmp X C) should produce the same flags as (sub X C), and (atomic_load_add X -C) should produce the flags of (sub X C).


More information about the llvm-commits mailing list