[llvm-dev] should we have IR intrinsics for integer min/max?
Manuel Jacob via llvm-dev
llvm-dev at lists.llvm.org
Mon Nov 7 12:20:13 PST 2016
On 2016-11-07 20:01, Sanjay Patel via llvm-dev wrote:
> FWIW, InstCombine doesn't canonicalize any of the first 3 options
> currently. Codegen suffers because of that (depending on the target
> machine
> and data types). Regardless of the IR choice, some backend fixes are
> needed.
I'm missing context here. Can you describe in more detail how the IR
choice affects the code generation? In case the target has special
integer min / max instructions, why is matching all three variants
difficult?
-Manuel
More information about the llvm-dev
mailing list