[XLA] Don't call into the allocator for 0 byte allocations
[XLA] Don't call into the allocator for 0 byte allocations

This makes it obvious that XLA does not depend on an allocator returning
non-nullptr for zero sized allocations.

PiperOrigin-RevId: 205672174

aselle/tensorflow,xzturn/tensorflow,jalexvig/tensorflow,Bismarrck/tensorflow,gunan/tensorflow,yongtang/tensorflow,yongtang/tensorflow,ageron/tensorflow,snnn/tensorflow,gautam1858/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow,snnn/tensorflow,xzturn/tensorflow,jhseu/tensorflow,alshedivat/tensorflow,ageron/tensorflow,jendap/tensorflow,asimshankar/tensorflow,aselle/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,seanli9jan/tensorflow,petewarden/tensorflow,brchiu/tensorflow,kevin-coder/tensorflow-fork,apark263/tensorflow,ghchinoy/tensorflow,ghchinoy/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,annarev/tensorflow,dancingdan/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,Bismarrck/tensorflow,ppwwyyxx/tensorflow,xzturn/tensorflow,gautam1858/tensorflow,jalexvig/tensorflow,aldian/tensorflow,frreiss/tensorflow-fred,apark263/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,gunan/tensorflow,ageron/tensorflow,DavidNorman/tensorflow,ZhangXinNan/tensorflow,jalexvig/tensorflow,jhseu/tensorflow,jhseu/tensorflow,dongjoon-hyun/tensorflow,gunan/tensorflow,petewarden/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,aselle/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,AnishShah/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,aldian/tensorflow,ZhangXinNan/tensorflow,sarvex/tensorflow,petewarden/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,kobejean/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,snnn/tensorflow,renyi533/tensorflow,hfp/tensorflow-xsmm,ghchinoy/tensorflow,AnishShah/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,theflofly/tensorflow,jalexvig/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,alshedivat/tensorflow,dongjoon-hyun/tensorflow,gunan/tensorflow,jalexvig/tensorflow,frreiss/tensorflow-fred,aselle/tensorflow,ageron/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,snnn/tensorflow,girving/tensorflow,karllessard/tensorflow,theflofly/tensorflow,sarvex/tensorflow,arborh/tensorflow,ghchinoy/tensorflow,DavidNorman/tensorflow,kevin-coder/tensorflow-fork,paolodedios/tensorflow,girving/tensorflow,aam-at/tensorflow,jalexvig/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,dongjoon-hyun/tensorflow,ghchinoy/tensorflow,jendap/tensorflow,chemelnucfin/tensorflow,annarev/tensorflow,jhseu/tensorflow,aam-at/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,jbedorf/tensorflow,arborh/tensorflow,xodus7/tensorflow,dancingdan/tensorflow,ageron/tensorflow,tensorflow/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,kobejean/tensorflow,xodus7/tensorflow,chemelnucfin/tensorflow,hfp/tensorflow-xsmm,renyi533/tensorflow,frreiss/tensorflow-fred,girving/tensorflow,ZhangXinNan/tensorflow,alsrgv/tensorflow,DavidNorman/tensorflow,sarvex/tensorflow,ZhangXinNan/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,asimshankar/tensorflow,brchiu/tensorflow,xzturn/tensorflow,ageron/tensorflow,cxxgtxy/tensorflow,jendap/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,apark263/tensorflow,petewarden/tensorflow,asimshankar/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,seanli9jan/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,dongjoon-hyun/tensorflow,gunan/tensorflow,DavidNorman/tensorflow,ZhangXinNan/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow,seanli9jan/tensorflow,aam-at/tensorflow,snnn/tensorflow,davidzchen/tensorflow,kevin-coder/tensorflow-fork,freedomtan/tensorflow,DavidNorman/tensorflow,girving/tensorflow,davidzchen/tensorflow,aselle/tensorflow,hfp/tensorflow-xsmm,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,AnishShah/tensorflow,snnn/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,hfp/tensorflow-xsmm,davidzchen/tensorflow,jhseu/tensorflow,jbedorf/tensorflow,snnn/tensorflow,hehongliang/tensorflow,renyi533/tensorflow,jhseu/tensorflow,hehongliang/tensorflow,AnishShah/tensorflow,jendap/tensorflow,xodus7/tensorflow,Bismarrck/tensorflow,karllessard/tensorflow,adit-chandra/tensorflow,kobejean/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow,ghchinoy/tensorflow,xzturn/tensorflow,gunan/tensorflow,girving/tensorflow,adit-chandra/tensorflow,kobejean/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,gunan/tensorflow,AnishShah/tensorflow,Intel-tensorflow/tensorflow,jendap/tensorflow,Intel-tensorflow/tensorflow,kobejean/tensorflow,manipopopo/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xodus7/tensorflow,ppwwyyxx/tensorflow,theflofly/tensorflow,petewarden/tensorflow,dongjoon-hyun/tensorflow,asimshankar/tensorflow,kevin-coder/tensorflow-fork,girving/tensorflow,ZhangXinNan/tensorflow,hfp/tensorflow-xsmm,ghchinoy/tensorflow,apark263/tensorflow,seanli9jan/tensorflow,petewarden/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Bismarrck/tensorflow,jbedorf/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,dongjoon-hyun/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,girving/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,jalexvig/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,AnishShah/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,kobejean/tensorflow,jbedorf/tensorflow,asimshankar/tensorflow,arborh/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,seanli9jan/tensorflow,davidzchen/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_saved_model,asimshankar/tensorflow,adit-chandra/tensorflow,renyi533/tensorflow,manipopopo/tensorflow,cxxgtxy/tensorflow,Bismarrck/tensorflow,jalexvig/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,jalexvig/tensorflow,sarvex/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,xodus7/tensorflow,ageron/tensorflow,manipopopo/tensorflow,brchiu/tensorflow,xodus7/tensorflow,AnishShah/tensorflow,snnn/tensorflow,Bismarrck/tensorflow,xodus7/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,dongjoon-hyun/tensorflow,theflofly/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,alshedivat/tensorflow,alsrgv/tensorflow,davidzchen/tensorflow,sarvex/tensorflow,AnishShah/tensorflow,brchiu/tensorflow,jhseu/tensorflow,ZhangXinNan/tensorflow,seanli9jan/tensorflow,chemelnucfin/tensorflow,brchiu/tensorflow,hehongliang/tensorflow,aselle/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow-pywrap_saved_model,brchiu/tensorflow,kobejean/tensorflow,jendap/tensorflow,jbedorf/tensorflow,ghchinoy/tensorflow,karllessard/tensorflow,ageron/tensorflow,kevin-coder/tensorflow-fork,xzturn/tensorflow,girving/tensorflow,kevin-coder/tensorflow-fork,ppwwyyxx/tensorflow,ageron/tensorflow,hfp/tensorflow-xsmm,kobejean/tensorflow,asimshankar/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alshedivat/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,dancingdan/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,hfp/tensorflow-xsmm,xodus7/tensorflow,chemelnucfin/tensorflow,chemelnucfin/tensorflow,ZhangXinNan/tensorflow,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,theflofly/tensorflow,annarev/tensorflow,DavidNorman/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xodus7/tensorflow,cxxgtxy/tensorflow,arborh/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,renyi533/tensorflow,ghchinoy/tensorflow,sarvex/tensorflow,AnishShah/tensorflow,jalexvig/tensorflow,brchiu/tensorflow,snnn/tensorflow,petewarden/tensorflow,kevin-coder/tensorflow-fork,jendap/tensorflow,dancingdan/tensorflow,arborh/tensorflow,seanli9jan/tensorflow,Bismarrck/tensorflow,dancingdan/tensorflow,petewarden/tensorflow,alsrgv/tensorflow,theflofly/tensorflow,alshedivat/tensorflow,karllessard/tensorflow,renyi533/tensorflow,manipopopo/tensorflow,aselle/tensorflow,DavidNorman/tensorflow,ZhangXinNan/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,kevin-coder/tensorflow-fork,apark263/tensorflow,chemelnucfin/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,jbedorf/tensorflow,dancingdan/tensorflow,petewarden/tensorflow,arborh/tensorflow,alsrgv/tensorflow,cxxgtxy/tensorflow,alshedivat/tensorflow,DavidNorman/tensorflow,hehongliang/tensorflow,aam-at/tensorflow,ageron/tensorflow,kevin-coder/tensorflow-fork,freedomtan/tensorflow,aam-at/tensorflow,sarvex/tensorflow,xzturn/tensorflow,paolodedios/tensorflow,seanli9jan/tensorflow,yongtang/tensorflow,DavidNorman/tensorflow,hehongliang/tensorflow,adit-chandra/tensorflow,alshedivat/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow,kobejean/tensorflow,dongjoon-hyun/tensorflow,davidzchen/tensorflow,adit-chandra/tensorflow,dancingdan/tensorflow,aldian/tensorflow,brchiu/tensorflow,aselle/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,karllessard/tensorflow,AnishShah/tensorflow,jhseu/tensorflow,ghchinoy/tensorflow,girving/tensorflow,davidzchen/tensorflow,aselle/tensorflow,Intel-Corporation/tensorflow,aldian/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,apark263/tensorflow,dancingdan/tensorflow,jendap/tensorflow,aam-at/tensorflow,annarev/tensorflow,asimshankar/tensorflow,cxxgtxy/tensorflow,ageron/tensorflow,apark263/tensorflow,cxxgtxy/tensorflow,apark263/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,DavidNorman/tensorflow,gunan/tensorflow,alshedivat/tensorflow,petewarden/tensorflow,sarvex/tensorflow,chemelnucfin/tensorflow,chemelnucfin/tensorflow,annarev/tensorflow,apark263/tensorflow,yongtang/tensorflow,adit-chandra/tensorflow,jbedorf/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,Bismarrck/tensorflow,manipopopo/tensorflow,jbedorf/tensorflow,girving/tensorflow,seanli9jan/tensorflow,asimshankar/tensorflow,apark263/tensorflow,theflofly/tensorflow,theflofly/tensorflow,tensorflow/tensorflow,alsrgv/tensorflow,freedomtan/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,seanli9jan/tensorflow,theflofly/tensorflow,theflofly/tensorflow,paolodedios/tensorflow,asimshankar/tensorflow,aldian/tensorflow,aam-at/tensorflow,manipopopo/tensorflow,kevin-coder/tensorflow-fork,annarev/tensorflow,ghchinoy/tensorflow,alshedivat/tensorflow,gautam1858/tensorflow,gunan/tensorflow,adit-chandra/tensorflow,aldian/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,manipopopo/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,manipopopo/tensorflow,Intel-Corporation/tensorflow,alsrgv/tensorflow,dancingdan/tensorflow,hfp/tensorflow-xsmm,adit-chandra/tensorflow,chemelnucfin/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,alsrgv/tensorflow,AnishShah/tensorflow,Bismarrck/tensorflow,Intel-tensorflow/tensorflow,snnn/tensorflow,manipopopo/tensorflow,arborh/tensorflow,snnn/tensorflow,xzturn/tensorflow,manipopopo/tensorflow,dongjoon-hyun/tensorflow,ageron/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jendap/tensorflow,hfp/tensorflow-xsmm,freedomtan/tensorflow,tensorflow/tensorflow,Bismarrck/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,gunan/tensorflow,aldian/tensorflow,alsrgv/tensorflow,jbedorf/tensorflow,arborh/tensorflow,jalexvig/tensorflow,aam-at/tensorflow,annarev/tensorflow,hfp/tensorflow-xsmm,ZhangXinNan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,chemelnucfin/tensorflow,kevin-coder/tensorflow-fork,girving/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,arborh/tensorflow,xodus7/tensorflow,jendap/tensorflow,jendap/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,brchiu/tensorflow,aselle/tensorflow,jhseu/tensorflow,aldian/tensorflow,apark263/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,aselle/tensorflow,brchiu/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,ZhangXinNan/tensorflow,theflofly/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,hehongliang/tensorflow,dancingdan/tensorflow,dongjoon-hyun/tensorflow,kobejean/tensorflow,xzturn/tensorflow,petewarden/tensorflow,xodus7/tensorflow,manipopopo/tensorflow