[XLA:CPU] Don't create an MLIRContext if there are no attributes to parse.
FFI handlers can pass MLIR attributes via backend_config. Parsing these attributes require an MLIRContext instance, which is expensive to create and destroy.
Before this change, the MLIRContext is created regardless of whether backend_config contains any attribute, causing large and unnecessary overhead.
[XLA:CPU] Don't create an MLIRContext if there are no attributes to parse.
FFI handlers can pass MLIR attributes via backend_config. Parsing these attributes require an MLIRContext instance, which is expensive to create and destroy.
Before this change, the MLIRContext is created regardless of whether backend_config contains any attribute, causing large and unnecessary overhead.