If tree is a constant value that can be converted to type pt, perform
the conversion.
If tree is a constant value that can be converted to type pt, perform
the conversion.
If tree is a constant operation, replace with result.
If tree is a constant operation, replace with result.
Fold constants