[llvm] r261255 - [X86ISelLowering] Use isPowerof2 instead of rewriting it. NFC.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 18 12:43:15 PST 2016
Author: davide
Date: Thu Feb 18 14:43:15 2016
New Revision: 261255
URL: http://llvm.org/viewvc/llvm-project?rev=261255&view=rev
Log:
[X86ISelLowering] Use isPowerof2 instead of rewriting it. NFC.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=261255&r1=261254&r2=261255&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Feb 18 14:43:15 2016
@@ -21953,7 +21953,7 @@ X86TargetLowering::EmitVAARG64WithCustom
// to OverflowDestReg.
if (NeedsAlign) {
// Align the overflow address
- assert((Align & (Align-1)) == 0 && "Alignment must be a power of 2");
+ assert(isPowerOf2_32(Align) && "Alignment must be a power of 2");
unsigned TmpReg = MRI.createVirtualRegister(AddrRegClass);
// aligned_addr = (addr + (align-1)) & ~(align-1)
More information about the llvm-commits
mailing list