HomePhabricator

[JumpThreading] Fix opcode bonus in getJumpThreadDuplicationCost()

Authored by gberry on Dec 29 2015, 10:10 AM.

Description

[JumpThreading] Fix opcode bonus in getJumpThreadDuplicationCost()

The code that was meant to adjust the duplication cost based on the
terminator opcode was not being executed in cases where the initial
threshold was hit inside the loop.

Subscribers: mcrosier, llvm-commits

Differential Revision: http://reviews.llvm.org/D15536

llvm-svn: 256568