search for: optsize2

Displaying 2 results from an estimated 2 matches for "optsize2".

Did you mean: optsize
2011 Feb 27
0
[LLVMdev] TableGen syntax for matching a constant load
...ear performance gain. > It does not try to minimize code size at any cost. Jakob is right, but there is a clear market for "smallest at any cost". The FreeBSD folks would really like to build their bootloader with clang for example :). It should be reasonably easy to add a new "optsize2" function attribute to LLVM IR, and have that be set with -Oz (the "optimize for size at any cost") flag, which could then enable stuff like this. There are lots of other cases where this would be useful, such as forced use of "rep; movsb" on x86, which is much smaller tha...
2011 Feb 27
3
[LLVMdev] TableGen syntax for matching a constant load
On Feb 26, 2011, at 4:50 PM, Joerg Sonnenberger wrote: > On Sun, Feb 27, 2011 at 01:29:25AM +0100, Joerg Sonnenberger wrote: >> +let Predicates = [OptForSize] in { >> +def : Pat<(store (i32 0), addr:$dst), (AND32mi8 addr:$dst, 0)>; >> +def : Pat<(store (i32 0), addr:$dst), (AND32mi8 addr:$dst, 0)>; >> +def : Pat<(store (i64 -1), addr:$dst), (OR64mi8