aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-03 05:21:24 +0000
committerDan Gohman <gohman@apple.com>2008-12-03 05:21:24 +0000
commitcc78cdf2751a0a41efc829eb8a125300184d822e (patch)
tree7d939287cb73eab4055ef44d83da952b738090dc /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parente3402692d8c27035c0ec74cfe3ffcdec9314b777 (diff)
downloadllvm-cc78cdf2751a0a41efc829eb8a125300184d822e.zip
llvm-cc78cdf2751a0a41efc829eb8a125300184d822e.tar.gz
llvm-cc78cdf2751a0a41efc829eb8a125300184d822e.tar.bz2
Mark x86's V_SET0 and V_SETALLONES with isSimpleLoad, and teach X86's
foldMemoryOperand how to "fold" them, by converting them into constant-pool loads. When they aren't folded, they use xorps/cmpeqd, but for example when register pressure is high, they may now be folded as memory operands, which reduces register pressure. Also, mark V_SET0 isAsCheapAsAMove so that two-address-elimination will remat it instead of copying zeros around (V_SETALLONES was already marked). llvm-svn: 60461
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions