mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-14 00:14:19 +00:00
Don't use uninitialized values. Fixes vec_align.ll on X86 Linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fcf5d4f456
commit
916a9f071f
@ -5642,7 +5642,7 @@ static bool isConsecutiveLoad(SDNode *N, SDNode *Base, int Dist, int Size,
|
||||
static bool isBaseAlignment16(SDNode *Base, MachineFrameInfo *MFI,
|
||||
const X86Subtarget *Subtarget) {
|
||||
GlobalValue *GV;
|
||||
int64_t Offset;
|
||||
int64_t Offset = 0;
|
||||
if (isGAPlusOffset(Base, GV, Offset))
|
||||
return (GV->getAlignment() >= 16 && (Offset % 16) == 0);
|
||||
// DAG combine handles the stack object case.
|
||||
|
Loading…
x
Reference in New Issue
Block a user