[PATCH] D86725: [MemLoc] Support memcmp in MemoryLocation::getForArgument.

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 03:51:57 PDT 2020


xbolva00 added inline comments.


================
Comment at: llvm/lib/Analysis/MemoryLocation.cpp:225
+      break;
+    case LibFunc_memcmp:
+      assert((ArgIdx == 0 || ArgIdx == 1) &&
----------------
bcmp too?

LLVM transforms memcmp(...) == 0 to bcmp == 0.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D86725



More information about the llvm-commits mailing list