[llvm-bugs] [Bug 9004] LVI does not resolve condition value in destination blocks of conditional branches

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 21 04:25:18 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=9004

Florian Hahn <Florian.Hahn at arm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Florian.Hahn at arm.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Florian Hahn <Florian.Hahn at arm.com> ---
correlated value propagation gets this using LVI. I am closing this now, please
reopen in case I missed anything.

opt -correlated-propagation lvi2.ll -S                                          
; ModuleID = 'lvi2.ll'
source_filename = "lvi2.ll"

define i1 @foo(i32 %x) {
  %cond = icmp eq i32 %x, 0
  br i1 %cond, label %iftrue, label %iffalse

iftrue:                                           ; preds = %0
  ret i1 true

iffalse:                                          ; preds = %0
  ret i1 false
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171121/05e6b675/attachment.html>


More information about the llvm-bugs mailing list