diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-11-25 00:42:24 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-11-25 00:42:24 +0000 |
commit | c521c7bea5ac99eab07cac60bd6d1aa3ff7c17f8 (patch) | |
tree | a6235cccd6044eb63bce6d3fe6eb97cabb0253eb /llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | |
parent | 7629346193d366ab420f45947fe45cc5a79515d5 (diff) | |
download | bcm5719-llvm-c521c7bea5ac99eab07cac60bd6d1aa3ff7c17f8.tar.gz bcm5719-llvm-c521c7bea5ac99eab07cac60bd6d1aa3ff7c17f8.zip |
[OperandBundles] Extract duplicated code into a helper function, NFC
llvm-svn: 254047
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index c3fbaf2adfc..26088bbe018 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -2268,11 +2268,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) { attrVec); SmallVector<OperandBundleDef, 1> OpBundles; - - // Convert the operand bundle uses to operand bundle defs. See InstrTypes.h - // for details on how these differ. - for (unsigned i = 0, e = CS.getNumOperandBundles(); i != e; ++i) - OpBundles.emplace_back(CS.getOperandBundleAt(i)); + CS.getOperandBundlesAsDefs(OpBundles); Instruction *NC; if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) { |