Skip to content

Commit

Permalink
[PeepholeOptimizer] Refactor optimizeUncoalescable logic
Browse files Browse the repository at this point in the history
Reapply r242294.

- Create a new CopyRewriter for Uncoalescable copy-like instructions
- Change the ValueTracker to return a ValueTrackerResult

This makes optimizeUncoalescable looks more like optimizeCoalescable and
use the CopyRewritter infrastructure.

This is also the preparation for looking up into PHI nodes in the
ValueTracker.

rdar://problem/20404526

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242940 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
bcardosolopes committed Jul 22, 2015
1 parent b18e7bd commit e7aafe5
Showing 1 changed file with 246 additions and 127 deletions.
Loading

0 comments on commit e7aafe5

Please sign in to comment.