Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 1000
-
Component/s: Compiler: Optimizing
-
Labels:None
-
Number of attachments :
Description
Currently expression folding looks for operations such as:
x = y op c1
z = x op c2
where c1 and c2 are constants. However, in some cases we can fold registers on the RHS, for example:
x = y & a
z = x & a
can become:
z = y & a
also:
x = y / a
z = x / b
can become:
t = a * b
z = y / t
This replaces SF RFE tracker #1700396.