[llvm-commits] CVS: llvm/include/llvm/Instructions.h
Christopher Lamb
christopher.lamb at gmail.com
Sun Apr 22 15:22:25 PDT 2007
Changes in directory llvm/include/llvm:
Instructions.h updated: 1.71 -> 1.72
---
Log message:
PR400: http://llvm.org/PR400 phase 1 implementation feedback.
---
Diffs of the changes: (+2 -4)
Instructions.h | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
Index: llvm/include/llvm/Instructions.h
diff -u llvm/include/llvm/Instructions.h:1.71 llvm/include/llvm/Instructions.h:1.72
--- llvm/include/llvm/Instructions.h:1.71 Sun Apr 22 14:24:39 2007
+++ llvm/include/llvm/Instructions.h Sun Apr 22 17:22:02 2007
@@ -255,8 +255,7 @@
/// getAlignment - Return the alignment of the access that is being performed
///
unsigned getAlignment() const {
- signed Log2AlignVal = ((SubclassData>>1)-1);
- return ((Log2AlignVal < 0) ? 0 : 1<<Log2AlignVal);
+ return (1 << (SubclassData>>1)) >> 1;
}
void setAlignment(unsigned Align);
@@ -331,8 +330,7 @@
/// getAlignment - Return the alignment of the access that is being performed
///
unsigned getAlignment() const {
- signed Log2AlignVal = ((SubclassData>>1)-1);
- return ((Log2AlignVal < 0) ? 0 : 1<<Log2AlignVal);
+ return (1 << (SubclassData>>1)) >> 1;
}
void setAlignment(unsigned Align);
More information about the llvm-commits
mailing list