diff options
author | Ahmed Bougacha <ahmed@bougacha.org> | 2021-09-15 13:52:01 -0700 |
---|---|---|
committer | Ahmed Bougacha <ahmed@bougacha.org> | 2021-09-15 16:45:27 -0700 |
commit | 94a2f9cdb6f9ef9843057030159ee69f76722121 (patch) | |
tree | 11554bbb6130f858d281b86fb97b2bf27b316e79 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 242524741f3582d93e4fac8052d0bfc40f4c1ac4 (diff) | |
download | llvm-94a2f9cdb6f9ef9843057030159ee69f76722121.zip llvm-94a2f9cdb6f9ef9843057030159ee69f76722121.tar.gz llvm-94a2f9cdb6f9ef9843057030159ee69f76722121.tar.bz2 |
[GlobalISel] Fix CombinerHelper::isPredecessor for same def/use MI.
The doc comment for isPredecessor says:
Returns true if \p DefMI precedes \p UseMI or they are the same
instruction.
And dominates relies on that behavior for its own:
Returns true if \p DefMI dominates \p UseMI. By definition an
instruction dominates itself.
Make both statements correct by fixing isPredecessor.
Found by inspection.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions