[PATCH] D86342: Enable constexpr on ROTATELEFT/ROTATERIGHT builtin intrinsics (PR47249)

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 10:43:50 PDT 2020


erichkeane accepted this revision.
erichkeane added a comment.
This revision is now accepted and ready to land.

Its a bit of a shame that the two implementations (left/right) differ by only a single character, an y ideas for combining them cleanly?  I might also consider combining the two 'if' statements into a single one (if !EvalInteger(E->getArg(0)...) || !EvalInteger(E->getArg(1)...), but that is generally just preference.

Otherwise, LGTM.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86342/new/

https://reviews.llvm.org/D86342



More information about the cfe-commits mailing list