[all-commits] [llvm/llvm-project] 2a2847: [ConstantFold] Get rid of special cases for sizeof...
Eli Friedman via All-commits
all-commits at lists.llvm.org
Sat Jul 31 13:21:27 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2a2847823f0d13188c43ebdd0baf42a95df750c7
https://github.com/llvm/llvm-project/commit/2a2847823f0d13188c43ebdd0baf42a95df750c7
Author: Eli Friedman <efriedma at quicinc.com>
Date: 2021-07-31 (Sat, 31 Jul 2021)
Changed paths:
M clang/test/CodeGen/catch-nullptr-and-nonzero-offset-in-offsetof-idiom.c
M clang/test/CodeGen/catch-nullptr-and-nonzero-offset.c
M clang/test/CodeGenCXX/catch-nullptr-and-nonzero-offset-in-offsetof-idiom.cpp
M clang/test/OpenMP/for_reduction_codegen.cpp
M clang/test/OpenMP/master_taskloop_reduction_codegen.cpp
M clang/test/OpenMP/master_taskloop_simd_reduction_codegen.cpp
M clang/test/OpenMP/parallel_master_taskloop_reduction_codegen.cpp
M clang/test/OpenMP/parallel_master_taskloop_simd_reduction_codegen.cpp
M clang/test/OpenMP/taskloop_reduction_codegen.cpp
M clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp
M llvm/lib/IR/ConstantFold.cpp
M llvm/test/Other/constant-fold-gep.ll
M llvm/test/Transforms/LowerTypeTests/function-disjoint.ll
M llvm/test/tools/llvm-as/slow-ptrtoint.ll
Log Message:
-----------
[ConstantFold] Get rid of special cases for sizeof etc.
Target-dependent constant folding will fold these down to simple
constants (or at least, expressions that don't involve a GEP). We don't
need heroics to try to optimize the form of the expression before that
happens.
Fixes https://bugs.llvm.org/show_bug.cgi?id=51232 .
Differential Revision: https://reviews.llvm.org/D107116
More information about the All-commits
mailing list