search for: hasandnot

Displaying 2 results from an estimated 2 matches for "hasandnot".

2018 Jul 03
4
Question about canonicalizing cmp+select
Hi, Sanjay/all, I noticed in rL331486 that some compare-select optimizations are disabled in favor of providing canonicalized cmp+select to the backend. I am currently working on a private backend target, and the target has a small code size limit. With this change, some of the apps went over the codesize limit. As an example, C code: b = (a > -1) ? 4 : 5; ll code: Before rL331486:
2018 Jul 03
2
Question about canonicalizing cmp+select
...t >>>> > strategy moving forward to implement this optimization as a peephole >>>> opt in >>>> > my backend? >>>> I personally think it should probably be a DAGCombine transform, >>>> driven by a Target Transform Info hook (e.g. like hasAndNot()). >>>> >>>> > Thanks, >>>> > --Yuan >>>> Roman. >>>> >>>> > _______________________________________________ >>>> > LLVM Developers mailing list >>>> > llvm-dev at lists.llvm.org >>...