[llvm] [GVN] Invalidate ICF cache when clearing the instructions (PR #68145)

Shivam Gupta via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 09:15:07 PDT 2023


xgupta wrote:

Thanks for the reply, I did set the variable for -save-temps 

export CC=/home/shivam/llvm/new/llvm-project/build/bin/clang CXX=/home/shivam/llvm/new/llvm-project/build/bin/clang++  CFLAGS="-save-temps" CXXFLAGS="-save-temps" LDFLAGS="-save-temps"

And then run 
```./configure --with-lto --with-ensurepip=upgrade --enable-optimizations ```

It crashes and  I checked the generated .bc file 
```find . -type f -name '*.bc'```

There is no *.0.2.internalize.bc, only these

```_collectionsmodule.bc, getplatform.bc, _operator.bc, typeobject.bc, ceval.bc, string_parser.bc, ast.bc, namespaceobject.bc, gcmodule.bc, longobject.bc, pylifecycle.bc, bootstrap_hash.bc, signalmodule.bc, ast_opt.bc, myreadline.bc, hamt.bc, rangeobject.bc, errnomodule.bc, genobject.bc, fileobject.bc, pystrcmp.bc, errors.bc, pyfpe.bc, token.bc, pytime.bc, unicodeobject.bc, methodobject.bc, getpath.bc, setobject.bc, symtablemodule.bc, bltinmodule.bc, picklebufobject.bc, odictobject.bc, _math.bc, pystrhex.bc, bytearrayobject.bc, capsule.bc, asdl.bc, structmember.bc, obmalloc.bc, pyarena.bc, moduleobject.bc, _weakref.bc, getcopyright.bc, pyctype.bc, stringio.bc, bytesobject.bc, mystrtoul.bc, _abc.bc, preconfig.bc, _threadmodule.bc, pystate.bc, context.bc, memoryobject.bc, modsupport.bc, _functoolsmodule.bc, dtoa.bc, descrobject.bc, _iomodule.bc, Python-ast.bc, tupleobject.bc, importdl.bc, atexitmodule.bc, _warnings.bc, main.bc, pymath.bc, unicodectype.bc, faulthandler.bc, symtable.bc, buff eredio.bc, accu.bc, iterobject.bc, classobject.bc, _localemodule.bc, mysnprintf.bc, bytesio.bc, frozenmain.bc, textio.bc, getbuildinfo.bc, traceback.bc, unionobject.bc, _tracemalloc.bc, config.bc, sliceobject.bc, getversion.bc, codeobject.bc, _testembed.bc, exceptions.bc, timemodule.bc, formatter_unicode.bc, thread.bc, ast_unparse.bc, python.bc, peg_api.bc, complexobject.bc, marshal.bc, dynamic_annotations.bc, floatobject.bc, cellobject.bc, pythonrun.bc, interpreteridobject.bc, enumobject.bc, compile.bc, bytes_methods.bc, dynload_shlib.bc, dictobject.bc, getopt.bc, fileutils.bc, xxsubtype.bc, codecs.bc, _sre.bc, future.bc, pegen.bc, sysmodule.bc, object.bc, boolobject.bc, structseq.bc, parser.bc, weakrefobject.bc, genericaliasobject.bc, abstract.bc, getargs.bc, initconfig.bc, _stat.bc, import.bc, pyhash.bc, itertoolsmodule.bc, posixmodule.bc, listobject.bc, suggestions.bc, getcompiler.bc, iobase.bc, hashtable.bc, _codecsmodule.bc, frozen.bc, call.bc, fileio.bc, pwdmodule.bc, frameobject.bc, pathconfig.bc, pystrtod.bc, tokenizer.bc, funcobject.bc```

Is this not right?

https://github.com/llvm/llvm-project/pull/68145


More information about the llvm-commits mailing list