Clear unknown mem ops when merging stack slots (pr14090)
authorSebastian Pop <spop@codeaurora.org>
Thu, 18 Oct 2012 19:53:48 +0000 (19:53 +0000)
committerSebastian Pop <spop@codeaurora.org>
Thu, 18 Oct 2012 19:53:48 +0000 (19:53 +0000)
commit127777d686662445cd7a536125644531aaac75de
treee8f5d49da8505d245b5cb18776dea14ef01f84f6
parentfdd94d49557012520692b4ccf921d73a74c4d782
Clear unknown mem ops when merging stack slots (pr14090)

When merging stack slots, if StackColoring::remapInstructions gets a
value back from GetUnderlyingObject that it does not know about or is
not itself a stack slot, clear the memory operand in case it aliases
the merged slot. This prevents the introduction of incorrect aliasing
information.

Author:    Matthew Curtis <mcurtis@codeaurora.org>
llvm-svn: 166216
llvm/lib/CodeGen/StackColoring.cpp
llvm/test/CodeGen/X86/pr14090.ll [new file with mode: 0644]