[PATCH] Allow code generation of ARM usat/ssat instructions

Renato Golin renato.golin at linaro.org
Tue Mar 17 10:56:49 PDT 2015


Hi Ahmed,

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.

Makes sense?

cheers,
--renato


http://reviews.llvm.org/D8371

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list