[PATCH] D14948: [X86] Use precise CFI for pushes by default

Michael Kuperstein via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 2 06:21:31 PST 2015


mkuper added a comment.

Thanks, Rafael.


================
Comment at: include/llvm/CodeGen/MachineModuleInfo.h:168
@@ -167,1 +167,3 @@
 
+  /// UsePreciseUnwindInfo - True if we should emit precise CFA adjustment
+  /// information. False if we only need CFA to be precise at call sites.
----------------
rafael wrote:
> Don't repeat name in comment.
Following style of surrounding code...

================
Comment at: include/llvm/CodeGen/MachineModuleInfo.h:249
@@ -242,1 +248,3 @@
+  bool usePreciseUnwindInfo() const { return UsePreciseUnwindInfo; }
+  void setUsePreciseUnwindInfo(bool b) { UsePreciseUnwindInfo = b; }
 
----------------
rafael wrote:
> Nothing calls this, so it is dead code.
> 
> Do you have a followup patch that uses it?
Not yet, although one is eventually planned, per the comment in line 176.
As I wrote in the summary, I can pull out the dead code (and replace it with TODOs), if there's an objection to keeping it in the meanwhile.


http://reviews.llvm.org/D14948





More information about the llvm-commits mailing list