[PATCH] D38200: [GISel]: Process new insts to legalize in the order they were created

Aditya Nandakumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 17:06:58 PDT 2017


aditya_nandakumar added a comment.

Regarding looking at multiple instructions, One of the use cases I see is something like this.
t = G_ICMP <pred> a, b
s = G_SELECT t, c, d
On targets where selects are not legal, and we want something like the SELECT_CC, we'd need to generate something similar to
CUSTOM_SELECT_CC a, b, c, d, <pred>. This would require looking at the more than the select.
Of course, we can create a select_cc just locally (compare with 0) and let the combiner deal with it later, but that seems wasteful.


Repository:
  rL LLVM

https://reviews.llvm.org/D38200





More information about the llvm-commits mailing list