Mercurial > hg > graal-compiler
diff src/share/vm/opto/memnode.hpp @ 3854:1af104d6cf99
7079329: Adjust allocation prefetching for T4
Summary: on T4 2 BIS instructions should be issued to prefetch 64 bytes
Reviewed-by: iveresov, phh, twisti
author | kvn |
---|---|
date | Tue, 16 Aug 2011 16:59:46 -0700 |
parents | f1c12354c3f7 |
children | a92cdbac8b9e |
line wrap: on
line diff
--- a/src/share/vm/opto/memnode.hpp Tue Aug 16 11:53:57 2011 -0700 +++ b/src/share/vm/opto/memnode.hpp Tue Aug 16 16:59:46 2011 -0700 @@ -1278,6 +1278,16 @@ virtual int Opcode() const; virtual uint ideal_reg() const { return NotAMachineReg; } virtual uint match_edge(uint idx) const { return idx==2; } + virtual const Type *bottom_type() const { return Type::ABIO; } +}; + +// Allocation prefetch which may fault, TLAB size have to be adjusted. +class PrefetchAllocationNode : public Node { +public: + PrefetchAllocationNode(Node *mem, Node *adr) : Node(0,mem,adr) {} + virtual int Opcode() const; + virtual uint ideal_reg() const { return NotAMachineReg; } + virtual uint match_edge(uint idx) const { return idx==2; } virtual const Type *bottom_type() const { return ( AllocatePrefetchStyle == 3 ) ? Type::MEMORY : Type::ABIO; } };