In function searchALUInst, sub register usage of LEA dest should also block LEA/SUB optimization, otherwise the sub register usage gets an undefined value.
This patch fixes https://bugs.llvm.org/show_bug.cgi?id=50615.
Differential D103922
[X86FixupLEAs] Sub register usage of LEA dest should block LEA/SUB optimization Authored by Carrot on Jun 8 2021, 12:11 PM.
Details In function searchALUInst, sub register usage of LEA dest should also block LEA/SUB optimization, otherwise the sub register usage gets an undefined value. This patch fixes https://bugs.llvm.org/show_bug.cgi?id=50615.
Diff Detail
Unit Tests Event Timeline
Comment Actions I confirm that the initial miscompile we found gets fixed by this patch. I can't approve the patch because I'm not familiar with the component though. | ||||||
Please can you reference PR50615 in the comment for future reference