OSDN Git Service

Make sure we don't combine a large displacement and a frame index in the same address...
authorEli Friedman <eli.friedman@gmail.com>
Wed, 13 Jul 2011 21:29:53 +0000 (21:29 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 13 Jul 2011 21:29:53 +0000 (21:29 +0000)
commit2a01946de4e510e42691f8dc5e7331fcecb67432
treef8a9759d7f27ff272114ae8bb6d247fc973cb354
parent0d8dae292a088c3a742f655c1787782abfe7e34c
Make sure we don't combine a large displacement and a frame index in the same addressing mode on x86-64.  It can overflow, leading to a crash/miscompile.

<rdar://problem/9763308>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135084 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp
test/CodeGen/X86/2011-07-13-BadFrameIndexDisplacement.ll [new file with mode: 0644]