diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-01-11 16:58:01 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-18 17:55:40 +0100 |
commit | 1ab37fad61ab3b44bdb11b6865925321fccb7947 (patch) | |
tree | 541d36fc731a8013b43dba8fbc5fb8c4fa46ad60 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | c9540fe59bbf53223368c18e457f79d3e981a3a5 (diff) | |
download | llvm-1ab37fad61ab3b44bdb11b6865925321fccb7947.zip llvm-1ab37fad61ab3b44bdb11b6865925321fccb7947.tar.gz llvm-1ab37fad61ab3b44bdb11b6865925321fccb7947.tar.bz2 |
[InstCombine] Fix worklist management when simplifying demanded bits
When simplifying demanded bits, we currently only report the
instruction on which SimplifyDemandedBits was called as changed.
However, this is a recursive call, and the actually modified
instruction will usually be further up the chain. Additionally,
all the intermediate instructions should also be revisited,
as additional combines may be possible after the demanded bits
simplification. We fix this by explicitly adding them back to the
worklist.
Differential Revision: https://reviews.llvm.org/D72944
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions