Check for cannonicalization of shl X, 1 -> add X, X

llvm-svn: 3670
This commit is contained in:
Chris Lattner 2002-09-10 23:03:10 +00:00
parent e8c927f71a
commit 025e58dfa5
1 changed files with 4 additions and 0 deletions

View File

@ -33,3 +33,7 @@ uint "test5"(uint %A) {
ret uint %B
}
uint %test6(uint %A) {
%B = shl uint %A, ubyte 1 ;; convert to an add instruction
ret uint %B
}