diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2013-09-29 17:54:45 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2013-09-29 17:54:45 +0000 |
commit | 3f67a73d5caeefc406ab35e5760dfda60d060031 (patch) | |
tree | 175fcba05e9e1c41f5800681fde041c0c8c32c31 /gcc/config/sparc | |
parent | 9ac2f5386c126d08dbecde2e10652caf436793be (diff) | |
download | gcc-3f67a73d5caeefc406ab35e5760dfda60d060031.zip gcc-3f67a73d5caeefc406ab35e5760dfda60d060031.tar.gz gcc-3f67a73d5caeefc406ab35e5760dfda60d060031.tar.bz2 |
* config/sparc/sync.md: Add peephole for consecutive memory barriers.
From-SVN: r203014
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r-- | gcc/config/sparc/sync.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config/sparc/sync.md b/gcc/config/sparc/sync.md index 130f521..7b431bc 100644 --- a/gcc/config/sparc/sync.md +++ b/gcc/config/sparc/sync.md @@ -93,6 +93,18 @@ "membar\t%1" [(set_attr "type" "multi")]) +(define_peephole2 + [(set (match_operand:BLK 0 "" "") + (unspec:BLK [(match_dup 0) (match_operand:SI 1 "const_int_operand")] + UNSPEC_MEMBAR)) + (set (match_operand:BLK 2 "" "") + (unspec:BLK [(match_dup 2) (match_operand:SI 3 "const_int_operand")] + UNSPEC_MEMBAR))] + "" + [(set (match_operand:BLK 0 "" "") + (unspec:BLK [(match_dup 0) (match_dup 1)] UNSPEC_MEMBAR))] +{ operands[1] = GEN_INT (UINTVAL (operands[1]) | UINTVAL (operands[3])); }) + (define_expand "atomic_load<mode>" [(match_operand:I 0 "register_operand" "") (match_operand:I 1 "memory_operand" "") |