[PATCH] D67715: [Alignment][NFC] Align(1) to Align::None() conversions

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 09:18:05 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL372234: [Alignment][NFC] Align(1) to Align::None() conversions (authored by gchatelet, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D67715?vs=220690&id=220691#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67715/new/

https://reviews.llvm.org/D67715

Files:
  llvm/trunk/lib/CodeGen/MIRPrinter.cpp
  llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp


Index: llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
+++ llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
@@ -326,7 +326,7 @@
     OS << "landing-pad";
     HasAttributes = true;
   }
-  if (getAlignment() > 1) {
+  if (getAlignment() != llvm::Align::None()) {
     OS << (HasAttributes ? ", " : " (");
     OS << "align " << Log2(getAlignment());
     HasAttributes = true;
Index: llvm/trunk/lib/CodeGen/MIRPrinter.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MIRPrinter.cpp
+++ llvm/trunk/lib/CodeGen/MIRPrinter.cpp
@@ -629,7 +629,7 @@
     OS << "landing-pad";
     HasAttributes = true;
   }
-  if (MBB.getAlignment() > 1) {
+  if (MBB.getAlignment() != llvm::Align::None()) {
     OS << (HasAttributes ? ", " : " (");
     OS << "align " << MBB.getAlignment().value();
     HasAttributes = true;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67715.220691.patch
Type: text/x-patch
Size: 967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190918/6a42fc5e/attachment.bin>


More information about the llvm-commits mailing list