[llvm-commits] [llvm] r46404 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Chris Lattner
sabre at nondot.org
Sat Jan 26 12:07:42 PST 2008
Author: lattner
Date: Sat Jan 26 14:07:42 2008
New Revision: 46404
URL: http://llvm.org/viewvc/llvm-project?rev=46404&view=rev
Log:
Remove some code for inferring alignment info from the x86 backend
now that the dag combiner does it.
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=46404&r1=46403&r2=46404&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Jan 26 14:07:42 2008
@@ -5499,16 +5499,7 @@
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;
}
More information about the llvm-commits
mailing list