summaryrefslogtreecommitdiffstats
path: root/llvm/test/Other/pr32085.ll
Commit message (Collapse)AuthorAgeFilesLines
* Use no-op opt run to eliminate the difference in bb pred comment, per ↵Wei Mi2018-05-011-6/+3
| | | | | | chandler's suggestion. It is better than using sed on portability. llvm-svn: 331286
* Fix the sed command in test which doesn't work well on BSD.Wei Mi2018-05-011-3/+6
| | | | llvm-svn: 331280
* Fix the issue that ComputeValueKnownInPredecessors only handles the case whenWei Mi2018-05-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | phi is on lhs of a comparison op. For the following testcase, L1: %t0 = add i32 %m, 7 %t3 = icmp eq i32* %t2, null br i1 %t3, label %L3, label %L2 L2: %t4 = load i32, i32* %t2, align 4 br label %L3 L3: %t5 = phi i32 [ %t0, %L1 ], [ %t4, %L2 ] %t6 = icmp eq i32 %t0, %t5 br i1 %t6, label %L4, label %L5 We know if we go through the path L1 --> L3, %t6 should always be true. However currently, if the rhs of the eq comparison is phi, JumpThreading fails to evaluate %t6 to true. And we know that Instcombine cannot guarantee always canonicalizing phi to the left hand side of the comparison operation according to the operand priority comparison mechanism in instcombine. The patch handles the case when rhs of the comparison op is a phi. Differential Revision: https://reviews.llvm.org/D46275 llvm-svn: 331266
* Simplify the CFG after loop pass cleanup.Filipe Cabecinhas2017-04-261-0/+56
Summary: Otherwise we might end up with some empty basic blocks or single-entry-single-exit basic blocks. This fixes PR32085 Reviewers: chandlerc, danielcdh Subscribers: mehdi_amini, RKSimon, llvm-commits Differential Revision: https://reviews.llvm.org/D30468 llvm-svn: 301395
OpenPOWER on IntegriCloud