OSDN Git Service

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)
commit83ba06afa8503dc97a0aa5ec033022286959956c
treed926199c8b34ac68b1e2a33c922eb2214a3e9796
parentbf0683f0f75dfb92e73b09718ed278eeab8ba9d2
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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166216 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/StackColoring.cpp
test/CodeGen/X86/pr14090.ll [new file with mode: 0644]