[llvm-commits] [llvm] r140709 - /llvm/trunk/lib/Target/PTX/PTXAsmPrinter.cpp
Justin Holewinski
justin.holewinski at gmail.com
Wed Sep 28 11:24:58 PDT 2011
Author: jholewinski
Date: Wed Sep 28 13:24:58 2011
New Revision: 140709
URL: http://llvm.org/viewvc/llvm-project?rev=140709&view=rev
Log:
PTX: Fix alignment logic
Modified:
llvm/trunk/lib/Target/PTX/PTXAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/PTX/PTXAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PTX/PTXAsmPrinter.cpp?rev=140709&r1=140708&r2=140709&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PTX/PTXAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PTX/PTXAsmPrinter.cpp Wed Sep 28 13:24:58 2011
@@ -444,7 +444,7 @@
unsigned alignment = gv->getAlignment();
if (alignment != 0) {
decl += ".align ";
- decl += utostr(std::max(1U, Log2_32(gv->getAlignment())));
+ decl += utostr(gv->getAlignment());
decl += " ";
}
More information about the llvm-commits
mailing list