[llvm-commits] [llvm] r145896 - /llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Bill Wendling
isanbard at gmail.com
Mon Dec 5 17:57:48 PST 2011
Author: void
Date: Mon Dec 5 19:57:48 2011
New Revision: 145896
URL: http://llvm.org/viewvc/llvm-project?rev=145896&view=rev
Log:
Add a comment.
Modified:
llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=145896&r1=145895&r2=145896&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Mon Dec 5 19:57:48 2011
@@ -456,6 +456,9 @@
int CURegNum = getCompactUnwindRegNum(CURegs, Reg);
if (CURegNum == -1)
return ~0U;
+
+ // Encode the 3-bit register number in order, skipping over 3-bits for each
+ // register.
RegEnc |= (CURegNum & 0x7) << ((5 - I) * 3);
}
More information about the llvm-commits
mailing list