projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Transform @llvm.objectsize to integer if the argument is a result of malloc of known...
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
sdiv-shift.ll
1
; RUN: opt < %s -instcombine -S | not grep div
2
3
define i32 @a(i16 zeroext %x, i32 %y) nounwind {
4
entry:
5
%conv = zext i16 %x to i32
6
%s = shl i32 2, %y
7
%d = sdiv i32 %conv, %s
8
ret i32 %d
9
}