[PATCH] Allow code generation of ARM usat/ssat instructions
renato.golin at linaro.org
Tue Mar 17 10:56:49 PDT 2015
It seems a more generic approach to saturation would be a lot less complicated than this very long and repetitive list of conditionals. I may be wrong, but this pattern is normally target independent and can be done in generic IR, so it shouldn't be at all an ARM pass. Once you have usat and ssat (generic) intrinsics, then you can start pattern matching to select the best one, vectorize, etc.
Do you have your review somewhere public? A Phab review perhaps?
Weiming, maybe merging with the in progress patch would give you some ideas.
More information about the llvm-commits