The AMDGPU lowering for unconstrained G_FDIV sometimes needs to
introduce a mode switch in the middle, so it's helpful to have
constrained instructions available to legalize this. Right now nothing
is preventing reordering of the mode switch with the other
instructions in the expansion.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | ||
---|---|---|
1349 | Why do we have to do this? Can't we somehow loop over the non-metadata operands? |
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | ||
---|---|---|
1349 | I'm not sure. I expected ConstrainedFPIntrinsic to provide a nicer way to figure out the operands, but this is what's there and what SelectionDAGBuilder does. |
Why do we have to do this? Can't we somehow loop over the non-metadata operands?