[all-commits] [llvm/llvm-project] deab45: [IR] Remove support for icmp and fcmp constant exp...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jun 3 23:31:24 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: deab451e7a7f2dff42097049274637052c87eabd
      https://github.com/llvm/llvm-project/commit/deab451e7a7f2dff42097049274637052c87eabd
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-04 (Tue, 04 Jun 2024)

  Changed paths:
    M lld/test/COFF/lto-weak-undefined.ll
    M llvm/bindings/ocaml/llvm/llvm.ml
    M llvm/bindings/ocaml/llvm/llvm.mli
    M llvm/bindings/ocaml/llvm/llvm_ocaml.c
    M llvm/docs/LangRef.rst
    M llvm/docs/ReleaseNotes.rst
    M llvm/include/llvm-c/Core.h
    M llvm/include/llvm/IR/Constants.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
    M llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/lib/IR/ConstantFold.cpp
    M llvm/lib/IR/Constants.cpp
    M llvm/lib/IR/ConstantsContext.h
    M llvm/lib/IR/Core.cpp
    M llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/lib/Transforms/Utils/FunctionComparator.cpp
    M llvm/test/Analysis/Lint/noop-cast-expr-no-pointer.ll
    M llvm/test/Assembler/2007-01-05-Cmp-ConstExpr.ll
    M llvm/test/Assembler/ConstantExprFold.ll
    R llvm/test/Assembler/vector-cmp.ll
    M llvm/test/Bindings/OCaml/core.ml
    M llvm/test/Bitcode/vscale-round-trip.ll
    M llvm/test/CodeGen/AArch64/addsub.ll
    M llvm/test/CodeGen/AArch64/arm64-codegen-prepare-extload.ll
    M llvm/test/CodeGen/AArch64/dag-combine-concat-vectors.ll
    M llvm/test/CodeGen/AArch64/windows-extern-weak.ll
    M llvm/test/CodeGen/AMDGPU/force-alwaysinline-lds-global-address.ll
    M llvm/test/CodeGen/AMDGPU/loop_break.ll
    M llvm/test/CodeGen/ARM/Windows/mov32t-bundling.ll
    M llvm/test/CodeGen/Generic/pr33094.ll
    M llvm/test/CodeGen/Hexagon/stack-align-reset.ll
    M llvm/test/CodeGen/Mips/mirparser/target-flags-pic-mxgot-tls.mir
    M llvm/test/CodeGen/Mips/mirparser/target-flags-static-tls.mir
    M llvm/test/CodeGen/PowerPC/2008-05-01-ppc_fp128.ll
    M llvm/test/CodeGen/PowerPC/ifcvt-forked-bug-2016-08-08.ll
    M llvm/test/CodeGen/PowerPC/pr24636.ll
    M llvm/test/CodeGen/PowerPC/pr3711_widen_bit.ll
    M llvm/test/CodeGen/PowerPC/pr46923.ll
    M llvm/test/CodeGen/PowerPC/toc-load-sched-bug.ll
    M llvm/test/CodeGen/WebAssembly/add-prototypes.ll
    M llvm/test/CodeGen/WebAssembly/fast-isel-noreg.ll
    M llvm/test/CodeGen/X86/2008-09-19-RegAllocBug.ll
    M llvm/test/CodeGen/X86/address-type-promotion-constantexpr.ll
    M llvm/test/CodeGen/X86/codegen-prepare-extload.ll
    M llvm/test/CodeGen/X86/codegen-prepare-replacephi2.mir
    M llvm/test/CodeGen/X86/extern_weak.ll
    M llvm/test/CodeGen/X86/fast-isel-expect.ll
    M llvm/test/CodeGen/X86/no-plt.ll
    M llvm/test/CodeGen/X86/pr44749.ll
    M llvm/test/CodeGen/X86/undef-label.ll
    M llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll
    M llvm/test/Feature/const_pv.ll
    M llvm/test/Instrumentation/DataFlowSanitizer/extern_weak.ll
    M llvm/test/Other/constant-fold-gep.ll
    M llvm/test/Transforms/Attributor/value-simplify.ll
    M llvm/test/Transforms/CorrelatedValuePropagation/2010-09-26-MergeConstantRange.ll
    M llvm/test/Transforms/CorrelatedValuePropagation/select.ll
    M llvm/test/Transforms/GVN/PRE/pre-load-dbg.ll
    M llvm/test/Transforms/GlobalDCE/complex-constantexpr.ll
    M llvm/test/Transforms/GlobalOpt/cleanup-pointer-root-users-other-constexpr.ll
    M llvm/test/Transforms/GlobalOpt/constantfold-initializers.ll
    M llvm/test/Transforms/GlobalOpt/dead-constant-user.ll
    M llvm/test/Transforms/GlobalOpt/pr61674.ll
    M llvm/test/Transforms/IndVarSimplify/pr45835.ll
    M llvm/test/Transforms/InferAddressSpaces/AMDGPU/infer-address-space.ll
    M llvm/test/Transforms/Inline/always-inline.ll
    M llvm/test/Transforms/Inline/last-callsite.ll
    M llvm/test/Transforms/InstCombine/2004-11-27-SetCCForCastLargerAndConstant.ll
    M llvm/test/Transforms/InstCombine/2008-05-18-FoldIntToPtr.ll
    M llvm/test/Transforms/InstCombine/2010-03-03-ExtElim.ll
    M llvm/test/Transforms/InstCombine/2012-3-15-or-xor-constant.ll
    M llvm/test/Transforms/InstCombine/binop-select-cast-of-select-cond.ll
    M llvm/test/Transforms/InstCombine/cast.ll
    M llvm/test/Transforms/InstCombine/constant-fold-compare.ll
    M llvm/test/Transforms/InstCombine/constant-fold-iteration.ll
    M llvm/test/Transforms/InstCombine/fold-bin-operand.ll
    M llvm/test/Transforms/InstCombine/icmp-bitcast-glob.ll
    M llvm/test/Transforms/InstCombine/icmp-mul.ll
    M llvm/test/Transforms/InstCombine/mul-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/mul.ll
    M llvm/test/Transforms/InstCombine/not-add.ll
    M llvm/test/Transforms/InstCombine/phi-select-constant.ll
    M llvm/test/Transforms/InstCombine/pr20678.ll
    M llvm/test/Transforms/InstCombine/pr28725.ll
    M llvm/test/Transforms/InstCombine/pr32686.ll
    M llvm/test/Transforms/InstCombine/pr33453.ll
    M llvm/test/Transforms/InstCombine/pr35515.ll
    M llvm/test/Transforms/InstCombine/pr38677.ll
    M llvm/test/Transforms/InstCombine/pr83947.ll
    M llvm/test/Transforms/InstCombine/rem.ll
    M llvm/test/Transforms/InstCombine/select-and-or.ll
    M llvm/test/Transforms/InstCombine/select-safe-transforms.ll
    M llvm/test/Transforms/InstCombine/select.ll
    M llvm/test/Transforms/InstCombine/shift-amount-reassociation-in-bittest.ll
    M llvm/test/Transforms/InstCombine/vec_demanded_elts-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/vec_demanded_elts.ll
    M llvm/test/Transforms/InstSimplify/ConstProp/constant-expr.ll
    M llvm/test/Transforms/InstSimplify/pr28725.ll
    M llvm/test/Transforms/LowerTypeTests/function-weak.ll
    M llvm/test/Transforms/MergeFunc/constexpr.ll
    M llvm/test/Transforms/OpenMP/value-simplify-openmp-opt.ll
    M llvm/test/Transforms/SCCP/ip-ranges-select.ll
    M llvm/test/Transforms/SCCP/undef-resolve.ll
    M llvm/test/Transforms/SLPVectorizer/X86/phi3.ll
    M llvm/test/Transforms/SimplifyCFG/2009-05-12-externweak.ll
    R llvm/test/Transforms/SimplifyCFG/phi-to-select-constexpr-icmp.ll
    M llvm/test/Transforms/StructurizeCFG/invert-constantexpr.ll
    M llvm/tools/llvm-diff/lib/DifferenceEngine.cpp
    M llvm/unittests/IR/ConstantsTest.cpp
    M polly/test/ScopInfo/constant-non-integer-branch-condition.ll

  Log Message:
  -----------
  [IR] Remove support for icmp and fcmp constant expressions (#93038)

Remove support for the icmp and fcmp constant expressions.

This is part of:
https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179

As usual, many of the updated tests will no longer test what they were
originally intended to -- this is hard to preserve when constant
expressions get removed, and in many cases just impossible as the
existence of a specific kind of constant expression was the cause of the
issue in the first place.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list