[all-commits] [llvm/llvm-project] 8762f4: [InstCombine] Track inserted instructions when low...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Jun 23 06:36:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8762f4c7489cf4711bdffb34fad66d2b9324f066
https://github.com/llvm/llvm-project/commit/8762f4c7489cf4711bdffb34fad66d2b9324f066
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-06-23 (Fri, 23 Jun 2023)
Changed paths:
M llvm/include/llvm/Analysis/MemoryBuiltins.h
M llvm/lib/Analysis/MemoryBuiltins.cpp
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
M llvm/test/Transforms/InstCombine/builtin-dynamic-object-size.ll
Log Message:
-----------
[InstCombine] Track inserted instructions when lowering objectsize
The inserted instructions can usually be simplified. Make sure this
happens in the same InstCombine iteration by adding them to the
worklist.
We happen to get some better optimization in two cases, but this is
just a lucky accident. https://github.com/llvm/llvm-project/issues/63472
tracks implementing a fold for that case.
This doesn't track all inserted instructions yet, for that we would
also have to include those created by ObjectSizeOffsetEvaluator.
More information about the All-commits
mailing list