[PATCH] D11195: [PeepholeOptimizer] Refactor optimizeUncoalescable	logic. NFC
    Bruno Cardoso Lopes 
    bruno.cardoso at gmail.com
       
    Tue Jul 14 13:25:58 PDT 2015
    
    
  
bruno created this revision.
bruno added reviewers: qcolombet, MatzeB.
bruno added a subscriber: llvm-commits.
bruno set the repository for this revision to rL LLVM.
The PeepholeOptimizer misses some rewrite opportunities since it can't look through PHI instructions.
This patch cleans the current logic a bit while preparing for another patch that can handle PHIs. Changes include:
- 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.
    
Repository:
  rL LLVM
http://reviews.llvm.org/D11195
Files:
  lib/CodeGen/PeepholeOptimizer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11195.29705.patch
Type: text/x-patch
Size: 26412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150714/0d85cd0f/attachment.bin>
    
    
More information about the llvm-commits
mailing list