Skip to content

Instantly share code, notes, and snippets.

@nagisa
Created March 16, 2021 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nagisa/544fcb02b9c4da0067cdad1114a0feab to your computer and use it in GitHub Desktop.
Save nagisa/544fcb02b9c4da0067cdad1114a0feab to your computer and use it in GitHub Desktop.
auto CanSimplify = [GEPTy, &P, V = Ops[0]]() -> bool {
return P->getType() == GEPTy &&
getUnderlyingObject(P) == getUnderlyingObject(V);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment