projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
InstSimplify: Don't allow (x srem y) urem y -> x srem y
[oota-llvm.git]
/
test
/
Transforms
/
InstSimplify
/
ashr-nop.ll
1
; RUN: opt < %s -instsimplify -S | FileCheck %s
2
3
; CHECK-LABEL: @foo
4
; CHECK-NOT: ashr
5
define i32 @foo(i32 %x) {
6
%o = and i32 %x, 1
7
%n = add i32 %o, -1
8
%t = ashr i32 %n, 17
9
ret i32 %t
10
}