This is an archive of the discontinued LLVM Phabricator instance.

[PATCH 07/38] [noalias] D9378: Add IRBuilder support
AbandonedPublic

Authored by jeroen.dobbelaere on Oct 4 2019, 2:25 PM.

Details

Reviewers
hfinkel
jdoerfert
Summary

This is part of the series started by D68484.

Rebase of D9378.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2019, 2:25 PM
lebedev.ri added inline comments.
llvm/lib/IR/IRBuilder.cpp
475–484

I'd suggest to return Value* from CreateNoAliasPointer() and to cleanup this to

if (Ret->getType() == Ptr->getType())
  return Ret;
return CreateBitCast(Ret, Ptr->getType());

For review convenience, all changes related to the original local restrict patches have now been incorporated in the full restrict patch series.