mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rules for optimizing idempotency for bitwise operations.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{
|
||||
let x := calldataload(0)
|
||||
let z := calldataload(1)
|
||||
let t := and(and(x, z), x)
|
||||
let w := or(or(x, z), x)
|
||||
}
|
||||
// ----
|
||||
// step: expressionSimplifier
|
||||
//
|
||||
// {
|
||||
// let x := calldataload(0)
|
||||
// let z := calldataload(1)
|
||||
// let t := and(x, z)
|
||||
// let w := or(x, z)
|
||||
// }
|
||||
Reference in New Issue
Block a user