mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
InstCombine: Add a missing irem identity (X % X -> 0).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119538 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -81,3 +81,8 @@ define i32 @test12(i32 %i) {
|
||||
%tmp.5 = srem i32 %tmp.1, 2
|
||||
ret i32 %tmp.5
|
||||
}
|
||||
|
||||
define i32 @test13(i32 %i) {
|
||||
%x = srem i32 %i, %i
|
||||
ret i32 %x
|
||||
}
|
||||
|
Reference in New Issue
Block a user