aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SafeStackLayout.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2018-02-12 21:09:40 +0000
committerMichael Kruse <llvm@meinersbur.de>2018-02-12 21:09:40 +0000
commita6716d9d81466a9639c23bf0c2f4d1b269f416f5 (patch)
treec0714b130eef6c588c0dc1a01a043afd962490c4 /llvm/lib/CodeGen/SafeStackLayout.cpp
parenta8b8d3225b0d0d1431f52741c833fc06d85d970d (diff)
downloadllvm-a6716d9d81466a9639c23bf0c2f4d1b269f416f5.zip
llvm-a6716d9d81466a9639c23bf0c2f4d1b269f416f5.tar.gz
llvm-a6716d9d81466a9639c23bf0c2f4d1b269f416f5.tar.bz2
[ScopBuilder] scalar-indep: Fix mutually referencing PHIs.
Two or more PHIs mutually using each other directly or indirectly as incoming value could cause that a PHI WRITE be added before the PHI READ (i.e. it overwrites the current incoming value with the next incoming value before it being read). Fix by ensuring that the PHI WRITE and PHI READ are in the same statement. This should fix the miscompile of SingleSource/Benchmark/Misc/whetstone from the test-suite. llvm-svn: 324934
Diffstat (limited to 'llvm/lib/CodeGen/SafeStackLayout.cpp')
0 files changed, 0 insertions, 0 deletions