Add LiveRangeShrink pass to shrink live range within BB.

Description

Add LiveRangeShrink pass to shrink live range within BB.

Summary: LiveRangeShrink pass moves instruction right after the definition with the same BB if the instruction and its operands all have more than one use. This pass is inexpensive and guarantees optimal live-range within BB.

Reviewers: davidxl, wmi, hfinkel, MatzeB, andreadb

Reviewed By: MatzeB, andreadb

Subscribers: hiraditya, jyknight, sanjoy, skatkov, gberry, jholewinski, qcolombet, javed.absar, krytarowski, atrick, spatel, RKSimon, andreadb, MatzeB, mehdi_amini, mgorny, efriedma, davide, dberlin, llvm-commits

Differential Revision: https://reviews.llvm.org/D32563

Details

Committed
dehaoMay 12 2017, 12:29 PM
Reviewer
MatzeB
Differential Revision
D32563: Add LiveRangeShrink pass to shrink live range within BB.
Parents
rL302937: [PPC] Move the combine "a << (b % (sizeof(a) * 8)) -> (PPCshl a, b)" to theā€¦
Branches
Unknown
Tags
Unknown