llvm-project/llvm/test
Benjamin Kramer 06408451bf Revert "[SCCP] Use SimplifyBinOp for non-integer constant/expressions & overdef."
This reverts commit 1a02aaeaa4. Crashes on
the following test case:

$ cat crash.ll
source_filename = "__compute_module"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-grtev4-linux-gnu"

@0 = private unnamed_addr constant [24 x i8] c"\00\00\C0\7F\00\00\C0\7F\09\85\08?\ED\C94\FE~\EB/\F3\90\CF\BA\C1"
@1 = private unnamed_addr constant [24 x i8] c"\00\00\C0\7F\A3\A0\0FA\00\00\C0\7F\00\00\C0\7F\00\00\00\00\02\9AA\00"

define void @IgammaSpecialValues.448() {
entry:
  br label %fusion.26.loop_header.dim.0

fusion.26.loop_header.dim.0:                      ; preds = %fusion.26.loop_header.dim.0, %entry
  %fusion.26.invar_address.dim.0.0 = phi i64 [ 0, %entry ], [ %invar.inc17, %fusion.26.loop_header.dim.0 ]
  %0 = getelementptr inbounds [6 x float], [6 x float]* bitcast ([24 x i8]* @0 to [6 x float]*), i64 0, i64 %fusion.26.invar_address.dim.0.0
  %1 = load float, float* %0
  %2 = fmul float %1, 0.000000e+00
  %3 = getelementptr inbounds [6 x float], [6 x float]* bitcast ([24 x i8]* @1 to [6 x float]*), i64 0, i64 %fusion.26.invar_address.dim.0.0
  %4 = load float, float* %3
  %5 = fneg float %4
  %6 = fadd float %2, %5
  %invar.inc17 = add nuw nsw i64 %fusion.26.invar_address.dim.0.0, 1
  br label %fusion.26.loop_header.dim.0
}

$ opt -ipsccp -S < crash.ll
opt: llvm/include/llvm/Analysis/ValueLattice.h:251: bool llvm::ValueLatticeElement::markConstant(llvm::Constant *, bool): Assertion `getConstant() == V && "Marking constant with different value"' failed.
2020-04-13 11:23:26 +02:00
..
Analysis [BasicAA] Fix aliasGEP/DecomposeGEPExpression for scalable type. 2020-04-10 16:58:26 -07:00
Assembler [llvm] Fix missing FileCheck directive colons 2020-04-06 09:59:08 -06:00
Bindings
Bitcode
BugPoint
CodeGen [AMDGPU] Don't assert on partial exec copy 2020-04-12 21:14:36 -07:00
DebugInfo Revert "llvm-dwarfdump: Report errors when failing to parse loclist/debug_loc entries" 2020-04-11 16:54:49 -07:00
Demangle
Examples
ExecutionEngine Revert 43f031d312 "Enable IBT(Indirect Branch Tracking) in JIT with CET(Control-flow Enforcement Technology)" 2020-04-06 15:05:25 +02:00
Feature
FileCheck [FileCheck] Add missing %ProtectFileCheckOutput to FileCheck tests 2020-03-31 17:29:11 -04:00
Instrumentation [MSan] Add instrumentation for SystemZ 2020-04-10 16:53:49 +02:00
Integer
JitListener
LTO [ThinLTO] Drop dso_local if a GlobalVariable satisfies isDeclarationForLinker() 2020-04-07 15:46:01 -07:00
Linker
MC [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
MachineVerifier
Object [obj2yaml] - Do not dump the segment's "Align" field when it is equal to 1. 2020-04-09 14:20:36 +03:00
ObjectYAML [llvm] Fix missing FileCheck directive colons 2020-04-06 09:59:08 -06:00
Other [CFGPrinter] Adding heat coloring to CFGPrinter 2020-04-08 19:59:51 +00:00
Reduce
SafepointIRVerifier
Support
SymbolRewriter
TableGen [Alignment][NFC] Transitionning more getMachineMemOperand call sites 2020-03-31 08:36:18 +00:00
ThinLTO/X86 [ThinLTO] Drop dso_local if a GlobalVariable satisfies isDeclarationForLinker() 2020-04-07 15:46:01 -07:00
Transforms Revert "[SCCP] Use SimplifyBinOp for non-integer constant/expressions & overdef." 2020-04-13 11:23:26 +02:00
Unit Try again to get tests passing again on Windows. 2020-04-02 20:00:38 -04:00
Verifier [Verifier] Verify matrix dimensions operands match vector size. 2020-04-01 09:21:39 +01:00
YAMLParser
tools Revert "llvm-dwarfdump: Report errors when failing to parse loclist/debug_loc entries" 2020-04-11 16:54:49 -07:00
.clang-format
CMakeLists.txt Reland "Make it possible for lit.site.cfg to contain relative paths, and use it for llvm and clang" 2020-04-02 16:12:03 -04:00
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in Try again to get tests passing again on Windows. 2020-04-02 20:00:38 -04:00