- Jan 04, 2010
-
-
David Greene authored
Change errs() to dbgs(). llvm-svn: 92490
-
Douglas Gregor authored
interface, suggest correction of typos. For example, given: @interface NSString @end @implementation NSstring @end we'll warn with: t.m:4:19: warning: cannot find interface declaration for 'NSstring'; did you mean 'NSString'? @implementation NSstring ^ However, since this is just a warning, we don't provide a fix-it hint. Good idea, Ted! llvm-svn: 92488
-
Anton Korobeynikov authored
llvm-svn: 92472
-
Chris Lattner authored
llvm-svn: 92471
-
Mikhail Glushenkov authored
llvm-svn: 92470
-
Chris Lattner authored
llvm-svn: 92469
-
Chris Lattner authored
file. InstructionCombining.cpp is now down to a svelte 9300 lines :) llvm-svn: 92468
-
Chris Lattner authored
a new InstCombineCompares.cpp file. llvm-svn: 92467
-
Chris Lattner authored
llvm-svn: 92466
-
Chris Lattner authored
move the 'SimplifyDemandedFoo' methods out to their own file, cutting 1K lines out of instcombine.cpp llvm-svn: 92465
-
Mikhail Glushenkov authored
Also trailing whitespace & 80-col violations. llvm-svn: 92464
-
Chris Lattner authored
among the instcombine library. llvm-svn: 92463
-
Chris Lattner authored
llvm-svn: 92462
-
Chris Lattner authored
llvm-svn: 92461
-
Chris Lattner authored
llvm-svn: 92460
-
Chris Lattner authored
llvm-svn: 92459
-
Chris Lattner authored
on the example in PR4216. This doesn't trigger in the testsuite, so I'd really appreciate someone scrutinizing the logic for correctness. llvm-svn: 92458
-
- Jan 03, 2010
-
-
Chris Lattner authored
two labels as a truncate. llvm-svn: 92455
-
Benjamin Kramer authored
llvm-svn: 92453
-
Chris Lattner authored
returned null, and may not have been big enough in any case. Thanks to Jay Foad for pointing this out! llvm-svn: 92452
-
Chris Lattner authored
llvm-svn: 92451
-
Chris Lattner authored
global variable initializer to require relocations. llvm-svn: 92450
-
Douglas Gregor authored
constructs: - Instance variable lookup ("foo->ivar" and, in instance methods, "ivar") - Property name lookup ("foo.prop") - Superclasses - Various places where a class name is required - Protocol names (e.g., id<proto>) This seems to cover many of the common places where typos could occur. llvm-svn: 92449
-
Chris Lattner authored
llvm-svn: 92446
-
Nick Lewycky authored
functionality change. llvm-svn: 92445
-
Chris Lattner authored
arrays of structs and other arrays, so long as all the subsequent indexes are constants. This triggers frequently for stuff like: @divisions = internal constant [29 x [2 x i32]] [[2 x i32] zeroinitializer, [2 x i32] [i32 0, i32 1], [2 x i32] [i32 0, i32 2], [2 x i32] [i32 0, i32 1], [2 x i32] zeroinitializer, [2 x i32] [i32 0, i32 1], [2 x i32] [i32 0, i32 1], [2 x i32] [i32 0, i32 2], [2 x i32] [i32 0, i32 2], [2 x i32] zeroinitializer, [2 x i32] zeroinitializer, [2 x i32] zeroinitializer, [2 x i32] [i32 0, i32 2], [2 x i32] [i32 0, i32 1], [2 x i32] zeroinitializer, [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 2]], align 32 ; <[29 x [2 x i32]]*> [#uses=50] %623 = getelementptr inbounds [29 x [2 x i32]]* @divisions, i64 0, i64 %619, i64 0 ; <i32*> [#uses=1] %684 = icmp eq i32 %683, 999 also for the "my_defs" table in 'gs', etc. llvm-svn: 92444
-
Eli Friedman authored
llvm-svn: 92441
-
Eli Friedman authored
llvm-svn: 92440
-
Eli Friedman authored
llvm-svn: 92439
-
Nick Lewycky authored
llvm-svn: 92436
-
Eli Friedman authored
llvm-svn: 92435
-
Eli Friedman authored
coverage. llvm-svn: 92433
-
Eli Friedman authored
llvm-svn: 92432
-
Eli Friedman authored
llvm-svn: 92431
-
Eli Friedman authored
llvm-svn: 92430
-
- Jan 02, 2010
-
-
Eli Friedman authored
llvm-svn: 92429
-
Eli Friedman authored
llvm-svn: 92428
-
Chris Lattner authored
occurs in 403.gcc in mode_mask_array, in safe-ctype.c (which is copied in multiple apps) in _sch_istable, etc. llvm-svn: 92427
-
Chris Lattner authored
when a consequtive sequence of elements all satisfies the predicate. Like the double compare case, this generates better code than the magic constant case and generalizes to more than 32/64 element array lookups. Here are some examples where it triggers. From 403.gcc, most accesses to the rtx_class array are handled, e.g.: @rtx_class = constant [153 x i8] c"xxxxxmmmmmmmmxxxxxxxxxxxxmxxxxxxiiixxxxxxxxxxxxxxxxxxxooxooooooxxoooooox3x2c21c2222ccc122222ccccaaaaaa<<<<<<<<<<<<<<<<<<111111111111bbooxxxxxxxxxxcc2211x", align 32 ; <[153 x i8]*> [#uses=547] %142 = icmp eq i8 %141, 105 @rtx_class = constant [153 x i8] c"xxxxxmmmmmmmmxxxxxxxxxxxxmxxxxxxiiixxxxxxxxxxxxxxxxxxxooxooooooxxoooooox3x2c21c2222ccc122222ccccaaaaaa<<<<<<<<<<<<<<<<<<111111111111bbooxxxxxxxxxxcc2211x", align 32 ; <[153 x i8]*> [#uses=543] %165 = icmp eq i8 %164, 60 Also, most of the 59-element arrays (mode_class/rid_to_yy, etc) optimized before are actually range compares. This lets 32-bit machines optimize them. 400.perlbmk has stuff like this: 400.perlbmk: PL_regkind, even for 32-bit: @PL_regkind = constant [62 x i8] c"\00\00\02\02\02\06\06\06\06\09\09\0B\0B\0D\0E\0E\0E\11\12\12\14\14\16\16\18\18\1A\1A\1C\1C\1E\1F !!!$$&'((((,-.///88886789:;8$", align 32 ; <[62 x i8]*> [#uses=4] %811 = icmp ne i8 %810, 33 @PL_utf8skip = constant [256 x i8] c"\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\02\03\03\03\03\03\03\03\03\03\03\03\03\03\03\03\03\04\04\04\04\04\04\04\04\05\05\05\05\06\06\07\0D", align 32 ; <[256 x i8]*> [#uses=94] %12 = icmp ult i8 %10, 2 etc. llvm-svn: 92426
-
Chris Lattner authored
for this case. llvm-svn: 92425
-