Consistent use of the noduplicate attribute.
authorEli Bendersky <eliben@google.com>
Mon, 17 Mar 2014 16:19:07 +0000 (16:19 +0000)
committerEli Bendersky <eliben@google.com>
Mon, 17 Mar 2014 16:19:07 +0000 (16:19 +0000)
commitbbbc2b1140e67f0c8783d4f8dd3977a482e1211e
tree9f4adafcb646896959ab3bbff95260a9d125309e
parent133aacf0dd1d7d8c7828594e5cd2e9595e0331ed
Consistent use of the noduplicate attribute.

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204049 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
lib/Analysis/CodeMetrics.cpp
lib/Analysis/IPA/InlineCost.cpp
lib/Analysis/LoopInfo.cpp
lib/Transforms/Scalar/JumpThreading.cpp