This is an archive of the discontinued LLVM Phabricator instance.

Revert "X86InstrInfo: Support immediates that are +1/-1 different in optimizeCompareInstr"
ClosedPublic

Authored by bgraur on Dec 10 2021, 8:13 AM.

Details

Summary

This reverts commit 847a6807332b13f43704327c2d30103ec0347c77.

The reverted revision was causing miscompiles that manifest on AMD
machines.

Diff Detail

llvm/test/CodeGen/X86/optimize-compare.mir