Change cast and int rules: constant folding always starts. Promotion using left side on all operands to bit width. Implicit narrowing to max size on right hand side.

This commit is contained in:
Christoffer Lerno
2021-03-15 16:44:09 +01:00
committed by Christoffer Lerno
parent 8a7f37e4d3
commit 07595df412
52 changed files with 1553 additions and 1462 deletions

View File

@@ -31,6 +31,6 @@ if.exit:
unreachable_block:
%2 = load i32, i32* %x
%add = add nsw i32 %2, 1
%add = add i32 %2, 1
store i32 %add, i32* %x
ret void