forked from OSchip/llvm-project
138328e45c
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 |
||
---|---|---|
.. | ||
codemodel.ll | ||
comparisons_i32.ll | ||
comparisons_i64.ll | ||
constant_multiply.ll | ||
delay_filler.ll | ||
i32.ll | ||
inlineasm-output-template.ll | ||
lanai-misched-trivial-disjoint.ll | ||
lit.local.cfg | ||
lshift64.ll | ||
masking_setccs.ll | ||
mem_alu_combiner.ll | ||
multiply.ll | ||
peephole-compare.mir | ||
rshift64.ll | ||
select.ll | ||
set_and_hi.ll | ||
shift.ll | ||
stack-frame.ll | ||
sub-cmp-peephole.ll | ||
subword.ll |