[Bug tree-optimization/92655] Suboptimal vectorization of variable shift

2021-08-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92655 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/92655] Suboptimal vectorization of variable shift

2019-11-25 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92655 --- Comment #3 from rsandifo at gcc dot gnu.org --- Maybe we could check in vect_determine_min_output_precision_1 whether the result is used as a shift amount, and if so do: precision = MAX (precision, use_stmt_info->min_output_precision);

[Bug tree-optimization/92655] Suboptimal vectorization of variable shift

2019-11-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92655 --- Comment #2 from Richard Biener --- "Fixed" source (MULWU), side-stepping GENERIC folding/narrowing of the subtract: inline uint64_t MULWU(uint64_t k, uint64_t m) { unsigned long xyz = BITS-m; return (( (k)<<(m) & M61) + ( (k) >> (xyz))

[Bug tree-optimization/92655] Suboptimal vectorization of variable shift

2019-11-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92655 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|