comparison src/share/vm/opto/subnode.hpp @ 3338:f1d6640088a1

6796786: invalid FP identity transform - (a - b) -> b - a Reviewed-by: iveresov, twisti
author never
date Tue, 03 May 2011 12:11:54 -0700
parents f95d63e2154a
children ae9241bbce4a
comparison
equal deleted inserted replaced
3336:2e038ad0c1d0 3338:f1d6640088a1
375 // node; note that negation and addition can replace subtraction. 375 // node; note that negation and addition can replace subtraction.
376 class NegFNode : public NegNode { 376 class NegFNode : public NegNode {
377 public: 377 public:
378 NegFNode( Node *in1 ) : NegNode(in1) {} 378 NegFNode( Node *in1 ) : NegNode(in1) {}
379 virtual int Opcode() const; 379 virtual int Opcode() const;
380 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
381 const Type *bottom_type() const { return Type::FLOAT; } 380 const Type *bottom_type() const { return Type::FLOAT; }
382 virtual uint ideal_reg() const { return Op_RegF; } 381 virtual uint ideal_reg() const { return Op_RegF; }
383 }; 382 };
384 383
385 //------------------------------NegDNode--------------------------------------- 384 //------------------------------NegDNode---------------------------------------
389 // node; note that negation and addition can replace subtraction. 388 // node; note that negation and addition can replace subtraction.
390 class NegDNode : public NegNode { 389 class NegDNode : public NegNode {
391 public: 390 public:
392 NegDNode( Node *in1 ) : NegNode(in1) {} 391 NegDNode( Node *in1 ) : NegNode(in1) {}
393 virtual int Opcode() const; 392 virtual int Opcode() const;
394 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
395 const Type *bottom_type() const { return Type::DOUBLE; } 393 const Type *bottom_type() const { return Type::DOUBLE; }
396 virtual uint ideal_reg() const { return Op_RegD; } 394 virtual uint ideal_reg() const { return Op_RegD; }
397 }; 395 };
398 396
399 //------------------------------CosDNode--------------------------------------- 397 //------------------------------CosDNode---------------------------------------