I don't know this pass at all, so would appreciate a thorough review.
I did notice that FP BinaryOperators are handled conservatively. FNeg is more an XOR than an FP operation, so I think I handled it appropriately. Please advise...
Differential D62819
[SCCP] Add UnaryOperator visitor to SCCP cameron.mcinally on Jun 3 2019, 11:24 AM. Authored by
Details I don't know this pass at all, so would appreciate a thorough review. I did notice that FP BinaryOperators are handled conservatively. FNeg is more an XOR than an FP operation, so I think I handled it appropriately. Please advise...
Diff Detail Event Timeline
Comment Actions Thanks for adding this. Please also add non-undef tests for unary operators, e.g. something like '%v = fneg double 10.0` or %v1 = fadd double 10.0, 20.0; %v2 = fneg double %v1.
Comment Actions Rename VState to V0State as requested. Also add constant folding test for unary fneg.
|
Binary->Unary