mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
IRGenerator: Leave IR optimization up to the caller to avoid unnecessarily doing it twice
This commit is contained in:
@@ -33,7 +33,8 @@ function test_via_ir_equivalence()
|
||||
for yul_file in $(find . -name "${output_file_prefix}*.yul" | sort -V); do
|
||||
asm_output_two_stage+=$(
|
||||
msg_on_error --no-stderr \
|
||||
"$SOLC" --strict-assembly --asm "${optimizer_flags[@]}" "$yul_file" | stripCLIDecorations
|
||||
"$SOLC" --strict-assembly --asm "${optimizer_flags[@]}" --no-optimize-yul "$yul_file" |
|
||||
stripCLIDecorations
|
||||
)
|
||||
done
|
||||
|
||||
@@ -50,7 +51,8 @@ function test_via_ir_equivalence()
|
||||
for yul_file in $(find . -name "${output_file_prefix}*.yul" | sort -V); do
|
||||
bin_output_two_stage+=$(
|
||||
msg_on_error --no-stderr \
|
||||
"$SOLC" --strict-assembly --bin "${optimizer_flags[@]}" "$yul_file" | stripCLIDecorations
|
||||
"$SOLC" --strict-assembly --bin "${optimizer_flags[@]}" "$yul_file" --no-optimize-yul |
|
||||
stripCLIDecorations
|
||||
)
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user