PATCH: Consistent use of the noduplicate attribute

Eli Bendersky eliben at
Fri Mar 14 16:04:56 PDT 2014


The "noduplicate" attribute of call instructions is sometimes queried
directly and sometimes through the cannotDuplicate() predicate. This patch
streamlines all queries to use the cannotDuplicate() predicate. It also
adds this predicate to InvokeInst, to mirror what CallInst has.

In addition, setCannotDuplicate() is removed because it's not being used
anywhere in the codebase.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noduplicate-consistent-use.1.patch
Type: text/x-patch
Size: 3521 bytes
Desc: not available
URL: <>

More information about the llvm-commits mailing list