[llvm-commits] [llvm] r159082 - /llvm/trunk/lib/Target/README.txt

Duncan Sands baldrick at free.fr
Sat Jun 23 09:25:55 PDT 2012


Hi Benjamin,

 > +unsigned f(unsigned x) { return ((x & 7) + 1) & 15; }
> +The & 15 part should be optimized away, it doesn't change the result. Currently
> +not optimized with "clang -emit-llvm-bc | opt -std-compile-opts".

this is probably due to ComputeMaskedBits's "add" logic being pretty weak.  It
could easily be made essentially perfect.

Ciao, Duncan.



More information about the llvm-commits mailing list