[patch] simplifyCFG for review

Ye, Mei Mei.Ye at amd.com
Fri Jun 28 14:46:13 PDT 2013


Hi all

Thank you for your comments.   Attached is an updated patch.
- add TargetTransformInfo to R600 .
- add hasBranchDivergence to query whether a target has branch divergence.
- Invoke branch reduction opts only when the underlying target has branch divergence.  So currently it only gets triggered for R600.
- fixed a bug in opt.cpp
- correct clang-format issues.

I have tested the correctness on x86 (by adding branch divergence to X86TargetTransformInfo in my local workspace) using existing testing infrastructure and CPU2006, CPU2000.  Tom Stellard agrees to run R600 testings (thanks a lot, Tom).

-Mei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130628/c318851a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: odc_simplifycfg
Type: application/octet-stream
Size: 33870 bytes
Desc: odc_simplifycfg
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130628/c318851a/attachment.obj>


More information about the llvm-commits mailing list