If value tracking can confirm that the cttz/ctlz source is known non-zero then we don't need to create a branch (which DAG will struggle to recover from).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D106685
[CGP] despeculateCountZeros - Don't create is-zero branch if cttz/ctlz source is known non-zero ClosedPublic Authored by RKSimon on Jul 23 2021, 10:01 AM.
Details Summary If value tracking can confirm that the cttz/ctlz source is known non-zero then we don't need to create a branch (which DAG will struggle to recover from).
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 24 2021, 4:16 AM This revision was landed with ongoing or failed builds.Jul 24 2021, 5:12 AM Closed by commit rG478b22d95aee: [CGP] despeculateCountZeros - Don't create is-zero branch if cttz/ctlz source… (authored by RKSimon). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 361446 llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/CodeGen/X86/clz.ll
|