Don't forego folding of loads into 64-bit adds when the other
authorDan Gohman <gohman@apple.com>
Sat, 14 Mar 2009 02:07:16 +0000 (02:07 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 14 Mar 2009 02:07:16 +0000 (02:07 +0000)
commit9a49d31b6f94febb408b5d25d3e768c04292cf10
tree77d360b48d336bccf8745653feac50957a6393be
parentcfbf05ef03806e6b11520b95eb33adda27241c47
Don't forego folding of loads into 64-bit adds when the other
operand is a signed 32-bit immediate. Unlike with the 8-bit
signed immediate case, it isn't actually smaller to fold a
32-bit signed immediate instead of a load. In fact, it's
larger in the case of 32-bit unsigned immediates, because
they can be materialized with movl instead of movq.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67001 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp