Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: tilkax at gmail dot com
Target Milestone: ---
This is especially helpful for constant y because checking
division-by-a-constant remainders against zero allows further
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78147
Tillmann Karras changed:
What|Removed |Added
CC||tilkax at gmail dot com
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96311
--- Comment #2 from Tillmann Karras ---
(In reply to Martin Liška from comment #1)
> Confirmed, but it seems the code is rejected with clang:
> [...]
> Is it a valid test-case?
I think so.
There is a bug report for Clang: https://bugs.llvm.org/
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tilkax at gmail dot com
Target Milestone: ---
Using gcc version 11.0.0 20200723, this code:
void foo()
{
constexpr int used = 0;
[](auto unused
Assignee: unassigned at gcc dot gnu.org
Reporter: tilkax at gmail dot com
Target Milestone: ---
When casting a 64-bit memory value to 32 bits, it's possible to only load the
lower 32 bits (this also avoids the REX prefix). GCC doesn't always do this:
https://god