[LLVMdev] [PATCH] Add a Scalarize pass

Richard Sandiford rsandifo at linux.vnet.ibm.com
Thu Nov 14 14:32:04 PST 2013


Richard Sandiford <rsandifo at linux.vnet.ibm.com> writes:
> Are you worried that adding it to PMB will increase compile time?
> The pass exits very early for any target that doesn't opt-in to doing
> scalarisation at the IR level, without even looking at the function.

As an alternative, adding Scalarizer and InstCombine passes to
SystemZPassConfig::addIRPasses() would probably give me most of the
benefit without affecting the PMB.  Scalarizer itself would then not
test TargetTransformInfo at all, at least in the initial version,
and the scalarisation would still logically be done by codegen.
Would that be OK?

Thanks,
Richard




More information about the llvm-dev mailing list