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 /llvm/utils/TableGen/CodeGenDAGPatterns.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 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index b3ed27b8d89..859a8ccac8d 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -1759,15 +1759,6 @@ static void InferFromPattern(const CodeGenInstruction &Inst, MayLoad = true; } - // Sanity-check the isSimpleLoad flag. - if (Inst.isSimpleLoad) { - if (!MayLoad) - fprintf(stderr, - "Warning: mayLoad flag not set or inferred for instruction '%s'" - " which has isSimpleLoad set.\n", - Inst.TheDef->getName().c_str()); - } - if (Inst.neverHasSideEffects) { if (HadPattern) fprintf(stderr, "Warning: neverHasSideEffects set on instruction '%s' " |