Open zhengyang92 opened 7 months ago
@jayfoad @regehr
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
test/
create fine-grained testing targets, so you can e.g. use make check-clang-ast
to only run Clang's AST tests.git clang-format HEAD~1
to format your changes.If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: Zhengyang Liu (zhengyang92)
My feeling is that we probably should not do this in IR because:
Instead it could be done as a target-specific DAG combine or instruction selection pattern.
I agree that we should not do this in IR.
@nikic @jayfoad agreed.
I'd like to work on this issue if possible 😀
@miguelraz Are you still planning to work on this? Otherwise I'd like pick it up.
@HendrikHuebner Yes I am, sorry for licking the cookie for a bit - I'm just drowning in exams at the moment.
Is this assuming that sext
will always be the next instruction?
Is this assuming that
sext
will always be the next instruction?
The ordering / placement of instructions does not matter. The combine would be rooted at the sext and look at its operand
@miguelraz are you still working on this?
Ping. @miguelraz
https://alive2.llvm.org/ce/z/bFW9vZ online Alive timed out for this one, you'll need local alive2 with larger smt-to.
no brainer, same pattern applies to fptoui.