[PATCH] D64128: [CodeGen] Generate llvm.ptrmask instead of inttoptr(and(ptrtoint, C)) if possible.

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 05:00:37 PDT 2019


xbolva00 added inline comments.


================
Comment at: clang/lib/CodeGen/CGExprScalar.cpp:2025
+
+  auto *CE = dyn_cast<CastExpr>(peelParens(BO->getLHS()));
+  if (!CE || CE->getCastKind() != CK_PointerToIntegral)
----------------
BO->getLHS()->IgnoreParens() ?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D64128





More information about the cfe-commits mailing list