HomePhabricator

[ExpandMemCmp] Properly constant-fold all compares.

Authored by courbet on Mar 3 2020, 4:17 AM.

Description

[ExpandMemCmp] Properly constant-fold all compares.

Summary:
This gets rid of duplicated code and diverging behaviour w.r.t.
constants.
Fixes PR45086.

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75519