Issue |
93185
|
Summary |
[CodeGen][NewPM] Avoid function level global states in `TargetMachine`
|
Labels |
llvm:codegen
|
Assignees |
|
Reporter |
paperchalice
|
Currently, some function level properties are passed by `TargetMachine`, by calling [`TargetMachine::resetTargetOptions()`](https://llvm.org/doxygen/classllvm_1_1TargetMachine.html#af0a50afebb9bed07d36be2bac4c6f729) before instruction selection. Now we are trying to port codegen pipeline to new pass manager, and this is not friendly to pass parallelization, we may move this part to a new analysis pass or something else and make it accessible to other codegen infrastructures (e.g. `TargetLowering`).
See also #27735 and #23546.
CC @aeubanks @arsenm
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs