[IRSim] Letting gep instructions be legal for similarity identification.
authorAndrew Litteken <andrew_litteken@apple.com>
Tue, 8 Sep 2020 01:12:52 +0000 (20:12 -0500)
committerAndrew Litteken <andrew.litteken@gmail.com>
Thu, 31 Dec 2020 20:41:14 +0000 (14:41 -0600)
commitd974ac0224dec34b95fb1be8c61bd8b524698bcd
tree55d6eb549d5fa8e6505a2558b4324d3ed6d6c5dc
parenta2513cb8655e0aea4baffb4391e946ad3e56d883
[IRSim] Letting gep instructions be legal for similarity identification.

GetElementPtr instructions require the extra check that all operands
after the first must only be constants and be exactly the same to be
considered similar.

Tests are found in unittests/Analysis/IRSimilarityIdentifierTest.cpp.
llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
llvm/lib/Analysis/IRSimilarityIdentifier.cpp
llvm/test/Transforms/IROutliner/illegal-gep.ll
llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp