From: Christopher Lamb Date: Sun, 22 Apr 2007 22:22:02 +0000 (+0000) Subject: PR400 phase 1 implementation feedback. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=032507d989163a89311847535a7e7c5d9a67229f;p=oota-llvm.git PR400 phase 1 implementation feedback. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36354 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 61d0efafe5f..236a1fdcced 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -255,8 +255,7 @@ public: /// getAlignment - Return the alignment of the access that is being performed /// unsigned getAlignment() const { - signed Log2AlignVal = ((SubclassData>>1)-1); - return ((Log2AlignVal < 0) ? 0 : 1<>1)) >> 1; } void setAlignment(unsigned Align); @@ -331,8 +330,7 @@ public: /// getAlignment - Return the alignment of the access that is being performed /// unsigned getAlignment() const { - signed Log2AlignVal = ((SubclassData>>1)-1); - return ((Log2AlignVal < 0) ? 0 : 1<>1)) >> 1; } void setAlignment(unsigned Align); diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 7ac784ecc7c..98ed57ea6f4 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -834,9 +834,8 @@ void BytecodeReader::ParseInstruction(SmallVector &Oprnds, case 62: { // attributed load if (Oprnds.size() != 2 || !isa(InstTy)) error("Invalid attributed load instruction!"); - signed Log2AlignVal = ((Oprnds[1]>>1)-1); Result = new LoadInst(getValue(iType, Oprnds[0]), "", (Oprnds[1] & 1), - ((Log2AlignVal < 0) ? 0 : 1<>1)) >> 1); break; } case Instruction::Load: @@ -850,10 +849,9 @@ void BytecodeReader::ParseInstruction(SmallVector &Oprnds, Value *Ptr = getValue(iType, Oprnds[1]); const Type *ValTy = cast(Ptr->getType())->getElementType(); - signed Log2AlignVal = ((Oprnds[2]>>1)-1); Result = new StoreInst(getValue(getTypeSlot(ValTy), Oprnds[0]), Ptr, (Oprnds[2] & 1), - ((Log2AlignVal < 0) ? 0 : 1<>1)) >> 1); break; } case Instruction::Store: {