[PATCH] D60413: [BDCE] SExt -> ZExt when no sign bits is used and instruction has multiple uses

Diogo N. Sampaio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 02:40:22 PDT 2020


dnsampaio added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/BDCE.cpp:127
+        Changed = true;
+        NumSExt2ZExt++;
+        continue;
----------------
nikic wrote:
> You probably need to `clearAssumptionsOfUsers()` here. Please check this test case: https://alive2.llvm.org/ce/z/caMis2
Indeed, many thanks.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D60413





More information about the llvm-commits mailing list