[PATCH] D60413: [AggressiveInstCombine] SExt -> ZExt when no sign bits is used with multiple uses

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 08:58:57 PDT 2020


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp:356
+  AssumptionCache AC(F);
+  DemandedBits DB(F, AC, DT);
   for (BasicBlock &BB : F) {
----------------
It's quite likely that this analysis may get invalidated by some of the performed transforms. AssumptionCache should also be made a pass dependency, not constructed inline.

But as mentioned, I would recommend moving this into BDCE instead.


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