[PATCH] D62818: [InstCombine] Change order of ICmp fold.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 14:42:21 PDT 2019


huihuiz added a comment.

Yes , changing the order would allow these folds.

  (X & (signbit >> Y)) != 0  ->  (X << Y) s< 0
  (X & (signbit >> Y)) == 0  ->  (X << Y) >= 0
  ((X << Y) & signbit) != 0  ->  (X << Y) s< 0
  ((X << Y) & signbit) == 0  ->  (X << Y) >= 0




Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62818/new/

https://reviews.llvm.org/D62818





More information about the llvm-commits mailing list