Skip to content

nir: lower iabs(x) to imax(x, ineg(x))

Erik Faye-Lund requested to merge kusma/mesa:nir-lower_inot_and_iabs into master

Microsoft's DXIL is based on LLVM, which doesn't have an integer ABS opcode, but instead needs it lowered to NEG + MAX. We need to do this with an option, to prevent an already existing optimization rule from undoing this.

Edited by Erik Faye-Lund

Merge request reports