diff options
author | Andrew Litteken <andrew.litteken@gmail.com> | 2020-08-23 00:30:10 -0500 |
---|---|---|
committer | Andrew Litteken <andrew.litteken@gmail.com> | 2020-12-23 15:02:00 -0600 |
commit | 050392660249c70c00e909ae4a7151ba2c766235 (patch) | |
tree | 90f0eabc9725349375c71c32c0556f06159bb958 /clang/lib/Basic/Module.cpp | |
parent | cce473e0c56408237ea9ac5e24df918afab91ec9 (diff) | |
download | llvm-050392660249c70c00e909ae4a7151ba2c766235.zip llvm-050392660249c70c00e909ae4a7151ba2c766235.tar.gz llvm-050392660249c70c00e909ae4a7151ba2c766235.tar.bz2 |
[IRSim] Adding support for isomorphic predicates
Some predicates, can be considered the same as long as the operands are
flipped. For example, a > b gives the same result as b > a. This maps
instructions in a greater than form, to their appropriate less than
form, swapping the operands in the IRInstructionData only, allowing for
more flexible matching.
Tests:
llvm/test/Transforms/IROutliner/outlining-isomorphic-predicates.ll
llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp
Reviewers: jroelofs, paquette
Differential Revision: https://reviews.llvm.org/D87310
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions