mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
missed optzn
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -68,3 +68,14 @@ int %test(int %A) {
|
|||||||
This sort of thing occurs in the alloca lowering code and other places that
|
This sort of thing occurs in the alloca lowering code and other places that
|
||||||
are generating alignment of an already aligned value.
|
are generating alignment of an already aligned value.
|
||||||
|
|
||||||
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
Turn this into a signed shift right in instcombine:
|
||||||
|
|
||||||
|
int f(unsigned x) {
|
||||||
|
return x >> 31 ? -1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25600
|
||||||
|
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01492.html
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user