diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-03 05:21:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-03 05:21:24 +0000 |
commit | cc78cdf2751a0a41efc829eb8a125300184d822e (patch) | |
tree | 7d939287cb73eab4055ef44d83da952b738090dc /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e3402692d8c27035c0ec74cfe3ffcdec9314b777 (diff) | |
download | bcm5719-llvm-cc78cdf2751a0a41efc829eb8a125300184d822e.tar.gz bcm5719-llvm-cc78cdf2751a0a41efc829eb8a125300184d822e.zip |
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 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions