[AutoUpgrade] Handle remangling upgrade for ptr.annotation
authorNikita Popov <npopov@redhat.com>
Tue, 8 Feb 2022 15:50:11 +0000 (16:50 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 8 Feb 2022 15:52:05 +0000 (16:52 +0100)
commit48eeefe59f2d2ab44eb771e8ae315cd15f97f57b
tree001d921f183563df2a12624fc721d6c9b50b02b2
parenteabae1b0175691d1f979299b22a25ed4474864a0
[AutoUpgrade] Handle remangling upgrade for ptr.annotation

The code assumed that the upgrade would happen due to the argument
count changing from 4 to 5. However, a remangling upgrade is also
possible here.
llvm/lib/IR/AutoUpgrade.cpp
llvm/test/Assembler/opaque-ptr-intrinsic-remangling.ll [moved from llvm/test/Assembler/invoke-intrinsic-upgrade.ll with 75% similarity]