Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/CodeGen/TargetPassConfig.cpp
Show First 20 Lines • Show All 858 Lines • ▼ Show 20 Lines | if (getOptLevel() != CodeGenOpt::None && !DisableConstantHoisting) | ||||
addPass(createConstantHoistingPass()); | addPass(createConstantHoistingPass()); | ||||
if (getOptLevel() != CodeGenOpt::None) | if (getOptLevel() != CodeGenOpt::None) | ||||
addPass(createReplaceWithVeclibLegacyPass()); | addPass(createReplaceWithVeclibLegacyPass()); | ||||
if (getOptLevel() != CodeGenOpt::None && !DisablePartialLibcallInlining) | if (getOptLevel() != CodeGenOpt::None && !DisablePartialLibcallInlining) | ||||
addPass(createPartiallyInlineLibCallsPass()); | addPass(createPartiallyInlineLibCallsPass()); | ||||
// Expand vector predication intrinsics into standard IR instructions. | |||||
// This pass has to run before ScalarizeMaskedMemIntrin and ExpandReduction | |||||
// passes since it emits those kinds of intrinsics. | |||||
addPass(createExpandVectorPredicationPass()); | |||||
// Add scalarization of target's unsupported masked memory intrinsics pass. | // Add scalarization of target's unsupported masked memory intrinsics pass. | ||||
// the unsupported intrinsic will be replaced with a chain of basic blocks, | // the unsupported intrinsic will be replaced with a chain of basic blocks, | ||||
// that stores/loads element one-by-one if the appropriate mask bit is set. | // that stores/loads element one-by-one if the appropriate mask bit is set. | ||||
addPass(createScalarizeMaskedMemIntrinLegacyPass()); | addPass(createScalarizeMaskedMemIntrinLegacyPass()); | ||||
// Expand reduction intrinsics into shuffle sequences if the target wants to. | // Expand reduction intrinsics into shuffle sequences if the target wants to. | ||||
// Allow disabling it for testing purposes. | // Allow disabling it for testing purposes. | ||||
if (!DisableExpandReductions) | if (!DisableExpandReductions) | ||||
▲ Show 20 Lines • Show All 590 Lines • Show Last 20 Lines |