Cherry pick D132720 (#10227)
Cherry pick D132720 (#10227)

Cherry pick : https://github.com/llvm/llvm-project/commit/a235562c0a051d0786cdb7da8e2af93e56e849c3
Cherry pick : https://github.com/llvm/llvm-project/commit/766f5d8c3ca12823275f6c69517aab49e32af98c
iree-org/iree,iree-org/iree,google/iree,google/iree,iree-org/iree,google/iree,iree-org/iree,iree-org/iree,google/iree,iree-org/iree,google/iree,google/iree,google/iree,iree-org/iree