This adds the initial plumbing to support optimisation remarks in
the IR hardware-loop pass.
I have left a TODO in a comment where we can improve the reporting,
but I will iterate on that once we have this initial support in.
Paths 
  |  Differential  D68579  
[HardwareLoops] Optimisation remarks ClosedPublic Authored by SjoerdMeijer on Oct 7 2019, 7:59 AM. 
Details Summary This adds the initial plumbing to support optimisation remarks in I have left a TODO in a comment where we can improve the reporting, 
Diff Detail Event TimelineComment Actions I agree that it would be good to know why a loop isn't a candidate, but this looks like a good start to me! This revision is now accepted and ready to land.Oct 15 2019, 8:24 AM Closed by commit rGad763751565b: [HardwareLoops] Optimisation remarks (authored by SjoerdMeijer).  ·  Explain WhyOct 16 2019, 2:09 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 223806 llvm/lib/CodeGen/HardwareLoops.cpp
 llvm/test/CodeGen/ARM/O3-pipeline.ll
 llvm/test/Transforms/HardwareLoops/ARM/opt-remarks.ll
 
 llvm/test/Transforms/HardwareLoops/unconditional-latch.ll
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
if (I)