[PATCH] D51262: Implement P0553 and P0556

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 1 10:04:44 PDT 2019


xbolva00 added inline comments.


================
Comment at: libcxx/include/bit:211
+        ? __t
+        : (__t << (__cnt % __dig)) | (__t >> (__dig - (__cnt % __dig)));
+}
----------------
mclow.lists wrote:
> Quuxplusone wrote:
> > No sane compiler would actually generate three `mod` operations for the three instances of repeated subexpression `__cnt % __dig`, would they?
> At `-O0`? Sure it would.
Hoist it? 


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

https://reviews.llvm.org/D51262





More information about the cfe-commits mailing list