[CodeGen][LLVM] Lower if_then_else() with select#11795
[CodeGen][LLVM] Lower if_then_else() with select#11795wrongtest-intellif wants to merge 1 commit intoapache:mainfrom
Conversation
|
Quick question: in TIR, |
Thanks for the reply! So is the |
|
After some thinking, it seems to be better to make TIR transformation if_then_else() -> T.select if neccesary, thus do not complex the llvm codegen. Thank you all the same! @junrushao1994 |
|
@wrongtest Thank you so much for the discussion! |
Hi, there. It seems better to use select directly for
if_then_else()expr. Sinceif_then_else()is common in padding representation, it could hopefully save lots of cross-bb overheads.My two remaining questions:
(1) Are there any places to test certain codegen features?
(2) Are there known llvm-based target which do not handle
selectinstruction well?