This is a direct equivalent of the new llvm.abs intrinsic added by
D84125.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | ||
---|---|---|
1505 | This is losing the immediate field. Does the DAG do the same? |
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | ||
---|---|---|
1505 | Yes but I suppose I should leave a TODO comment just like in SelectionDAG: |
Comment Actions
LGTM. I guess it would make sense to directly preserve the operand. I guess the sticking point would be should this be a separate opcode, similar to CTLZ/CTTZ + zero undef, or an operand
This is losing the immediate field. Does the DAG do the same?