1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Remove some code for inferring alignment info from the x86 backend

now that the dag combiner does it.

llvm-svn: 46404
This commit is contained in:
Chris Lattner 2008-01-26 20:07:42 +00:00
parent e66aea6532
commit 6124c0eb2d

View File

@ -5499,16 +5499,7 @@ static bool isBaseAlignment16(SDNode *Base, MachineFrameInfo *MFI,
int64_t Offset;
if (isGAPlusOffset(Base, GV, Offset))
return (GV->getAlignment() >= 16 && (Offset % 16) == 0);
else {
assert(Base->getOpcode() == ISD::FrameIndex && "Unexpected base node!");
int BFI = cast<FrameIndexSDNode>(Base)->getIndex();
if (BFI < 0)
// Fixed objects do not specify alignment, however the offsets are known.
return ((Subtarget->getStackAlignment() % 16) == 0 &&
(MFI->getObjectOffset(BFI) % 16) == 0);
else
return MFI->getObjectAlignment(BFI) >= 16;
}
// DAG combine handles the stack object case.
return false;
}