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 | 37eb6c8e881cc35415c4d5cecd579b21ed7fc26f (patch) | |
tree | 40550321fe3caaaa7a081dc7d7ce4faa4339e234 /utils | |
parent | 93bc14cdd7a55a1d236a436a3cb99863626b0d11 (diff) | |
download | external_llvm-37eb6c8e881cc35415c4d5cecd579b21ed7fc26f.zip external_llvm-37eb6c8e881cc35415c4d5cecd579b21ed7fc26f.tar.gz external_llvm-37eb6c8e881cc35415c4d5cecd579b21ed7fc26f.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).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index b3ed27b..859a8cc 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/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' " |