[ARM] Constant fold VCTP intrinsics
authorDavid Green <david.green@arm.com>
Tue, 21 Jul 2020 07:24:37 +0000 (08:24 +0100)
committerDavid Green <david.green@arm.com>
Tue, 21 Jul 2020 10:39:31 +0000 (11:39 +0100)
commitbecaa6803ab532d15506829f0551a5fa49c39d7e
tree2e66adebb095a0fd973d67209c6d1196931e6b46
parente37b220442ec4f629a30e5ac229f2ae17580dca9
[ARM] Constant fold VCTP intrinsics

We can sometimes get into the situation where the operand to a vctp
intrinsic becomes constant, such as after a loop is fully unrolled. This
adds the constant folding needed for them, allowing them to simplify
away and hopefully simplifying remaining instructions.

Differential Revision: https://reviews.llvm.org/D84110
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Analysis/ConstantFolding/ARM/lit.local.cfg [new file with mode: 0644]
llvm/test/Analysis/ConstantFolding/ARM/mve-vctp.ll [new file with mode: 0644]