Logo
Explore Mirrors Help
Sign In
6502/llvm-6502
1
0
Fork 0
You've already forked llvm-6502
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-01-12 02:33:33 +00:00
Code Issues Projects Releases Wiki Activity
llvm-6502/test/Transforms/CorrelatedValuePropagation/2010-09-02-Trunc.ll

25 lines
451 B
LLVM
Raw Normal View History

Fix a bug in LazyValueInfo that CorrelatedValuePropagation exposed: In the LVI lattice, undef and the full set ConstantRange should not be treated as equivalent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112843 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-02 18:23:58 +00:00
; RUN: opt -S < %s -correlated-propagation | FileCheck %s
Fix typo. I accidentally edited the wrong file before my last commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112851 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-02 19:52:06 +00:00
; CHECK: @test
Fix a bug in LazyValueInfo that CorrelatedValuePropagation exposed: In the LVI lattice, undef and the full set ConstantRange should not be treated as equivalent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112843 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-02 18:23:58 +00:00
define i16 @test(i32 %a, i1 %b) {
entry:
%c = icmp eq i32 %a, 0
br i1 %c, label %left, label %right
right:
%d = trunc i32 %a to i1
br label %merge
left:
br i1 %b, label %merge, label %other
other:
ret i16 23
merge:
%f = phi i1 [%b, %left], [%d, %right]
; CHECK: select i1 %f, i16 1, i16 0
%h = select i1 %f, i16 1, i16 0
; CHECK: ret i16 %h
ret i16 %h
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 3382ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API