OSDN Git Service

[ConstProp] Constant propagation for get.active.lane.mask instrinsics
authorDavid Green <david.green@arm.com>
Fri, 8 Jan 2021 16:10:01 +0000 (16:10 +0000)
committerDavid Green <david.green@arm.com>
Fri, 8 Jan 2021 16:10:01 +0000 (16:10 +0000)
commite185b1dd7b34c352167823295281f1bf1df09976
treee059f7cc311f46774ff33c16b18365964514a44b
parentd4af86581e80ef0f7a6f4a4fff1c97260a726e71
[ConstProp] Constant propagation for get.active.lane.mask instrinsics

Similar to the Arm VCTP intrinsics, if the operands of an
active.lane.mask are both known, the constant lane mask can be
calculated. This can come up after unrolling the loops.

Differential Revision: https://reviews.llvm.org/D94103
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Transforms/InstSimplify/ConstProp/active-lane-mask.ll [new file with mode: 0644]