[PATCH] D41565: [Transforms] Support making mutable versions of new-format TBAA access tags
Hal Finkel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 15 11:23:55 PST 2018
hfinkel accepted this revision.
hfinkel added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/IR/MDBuilder.cpp:245
+ Metadata *ImmutabilityFlagNode = Tag->getOperand(ImmutabilityFlagOp);
+ if (!mdconst::extract<ConstantInt>(ImmutabilityFlagNode)->getValue())
+ return Tag;
----------------
// If Tag is already mutable then return it.
Repository:
rL LLVM
https://reviews.llvm.org/D41565
More information about the llvm-commits
mailing list