Commit 09d58b2d authored by Mochocki, Piotr's avatar Mochocki, Piotr

Changes in code.

Change-Id: I2e93d5e9d782823ccee5f54284ae7851f8025343
parent d4f478be
......@@ -2852,14 +2852,8 @@ bool CodeGenPatternMatch::MatchBoolOp(llvm::BinaryOperator& I)
{
if(CmpInst* cmp = llvm::dyn_cast<CmpInst>(I.getOperand(i)))
{
if(isa<ExtractElementInst>(cmp->getOperand(0)) || isa<ExtractElementInst>(cmp->getOperand(1)))
{
// don't extend liveness of values coming from extract Element as they have large liveranges
continue;
}
// only beneficial if the other operand only have one use
Instruction* otherSource = dyn_cast<Instruction>(I.getOperand(1 - i));
if(otherSource && otherSource->hasOneUse() && otherSource->getParent() == I.getParent())
if(I.getOperand(1 - i)->hasOneUse())
{
BoolOpPattern *pattern = new (m_allocator) BoolOpPattern();
pattern->boolOp = &I;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment