Avatar
llvmはそういう情報を持っている様です。 https://github.com/apple/swift-llvm/blob/stable/include/llvm/Analysis/ConstantFolding.h#L140-L142 /// canConstantFoldCallTo - Return true if its even possible to fold a call to /// the specified function. bool canConstantFoldCallTo(ImmutableCallSite CS, const Function *F);
Contribute to swift-llvm development by creating an account on GitHub.
11:59 PM
Contribute to swift-llvm development by creating an account on GitHub.
12:02 AM
Constant folding and constant propagation are related compiler optimizations used by many modern compilers. An advanced form of constant propagation known as sparse conditional constant propagation can more accurately propagate constants and simu...