Don't mark scalar integer multiplication as Expand on x86, since x86
authorDan Gohman <gohman@apple.com>
Mon, 18 Feb 2008 17:55:26 +0000 (17:55 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 18 Feb 2008 17:55:26 +0000 (17:55 +0000)
commit339ffedca9f5f367d26507eb631fd5f929c04677
tree2387b32870024768b77060e5ded1cd7085cd800f
parente10c0b9d66910dd1dbe2914877ae71ac5dea941f
Don't mark scalar integer multiplication as Expand on x86, since x86
has plain one-result scalar integer multiplication instructions.
This avoids expanding such instructions into MUL_LOHI sequences that
must be special-cased at isel time, and avoids the problem with that
code that provented memory operands from being folded.

This fixes PR1874, addressesing the most common case. The uncommon
cases of optimizing multiply-high operations will require work
in DAGCombiner.

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