[X86] Correct spill slot size.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 1 May 2018 10:29:38 +0000 (10:29 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 1 May 2018 10:29:38 +0000 (10:29 +0000)
commitd4c58400c5499fdd6d49ad366d18c8cfc3abd228
treebfc89b614d0b862760ee4f16f17d147c5be98af3
parent0537fdbcabbc5dcb5d54ec23ed1fe818751cb852
[X86] Correct spill slot size.

This patch fixes a bug introduced by revision 330778 (originally reviewed at:
https://reviews.llvm.org/D44782), where function isFrameLoadOpcode returned
the wrong number of bytes read for opcodes VMOVSSrm and VMOVSDrm.

This corrects that mistake, and extends the regression test to catch cases where
the dead stores should be removed.

Patch by Jeremy Morse.

Differential Revision: https://reviews.llvm.org/D46256

llvm-svn: 331252
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/test/CodeGen/X86/pr30821.mir