[llvm] [SimplifyCFG] Select the first instruction that we can handle in `passingValueIsAlwaysUndefined` (PR #98802)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 14 19:49:44 PDT 2024
dtcxzyw wrote:
> I can't reproduce the problem yet, can you provide a more detailed test step? My local test commands are:
>
> ```shell
> # CMake project
> clang++ -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -DCMake_HAVE_CXX_FILESYSTEM=1 -I/home/dianqk/llvm/CMake/build/Bootstrap.cmk -I/home/dianqk/llvm/CMake/Source -I/home/dianqk/llvm/CMake/Source/LexerParser -I/home/dianqk/llvm/CMake/Utilities/std -I/home/dianqk/llvm/CMake/Utilities -c /home/dianqk/llvm/CMake/Source/cmGeneratorExpressionLexer.cxx -o cmGeneratorExpressionLexer.o -emit-llvm -O3 -Xclang -disable-llvm-passes
>
> # cmake (stage 1)
> cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=OFF -DBUILD_SHARED_LIBS=ON ...
> # main branch
> perf stat $LLVM_PROJECT/build-base/bin/opt -O2 cmGeneratorExpressionLexer.o --disable-output
> 339,409,679 instructions:u
> # pr
> perf stat $LLVM_PROJECT/build/bin/opt -O2 cmGeneratorExpressionLexer.o --disable-output
> 338,379,357 instructions:u
> # b686e35ec
> 339,831,704 instructions:u
> ```
Can you try with `opt -O3`?
https://github.com/llvm/llvm-project/pull/98802
More information about the llvm-commits
mailing list