This wrapper checks if there is at least one non-zero weight before
setting the metadata.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
| Paths 
 |  Differential  D39872  
Add a wrapper function to set branch weights metadata. ClosedPublic Authored by eraman on Nov 9 2017, 2:40 PM. 
Details Summary This wrapper checks if there is at least one non-zero weight before 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Nov 9 2017, 2:45 PM Closed by commit rL317845: Add a wrapper function to set branch weights metadata. (authored by eraman).  ·  Explain WhyNov 9 2017, 2:52 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 122339 llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
 llvm/trunk/test/Transforms/SimplifyCFG/suppress-zero-branch-weights.ll
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||