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
This commit is contained in:
Hal Finkel
2012-11-28 03:04:10 +00:00
parent 6acb53152c
commit 430b9079c6
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -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]);