diff options
author | Hal Finkel <hfinkel@anl.gov> | 2012-11-28 03:04:10 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2012-11-28 03:04:10 +0000 |
commit | 430b9079c614cd3f45015a6516590d33742cc802 (patch) | |
tree | 81f69c741eaa13b84d73d5d600e8af14b84bcc88 /lib | |
parent | 6acb53152cd2140bc1f7ec7280bf67823e564ba0 (diff) |
BBVectorize: Correctly merge SubclassOptionalData
When two instructions are combined into a vector instruction,
the resulting instruction must have the most-conservative flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Vectorize/BBVectorize.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp index dacbc7f242..f7be3e3124 100644 --- a/lib/Transforms/Vectorize/BBVectorize.cpp +++ b/lib/Transforms/Vectorize/BBVectorize.cpp @@ -2903,6 +2903,7 @@ namespace { K->mutateType(getVecTypeForPair(L->getType(), H->getType())); combineMetadata(K, H); + K->intersectOptionalDataWith(H); for (unsigned o = 0; o < NumOperands; ++o) K->setOperand(o, ReplacedOperands[o]); |