Commit Graph
4 Commits
Author SHA1 Message Date
Pawel Bylica bff4c86723 Correct syntax of getelementptr in regression test. NFC
Bonus: unused variable removed.
 


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@236116 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 16:05:29 +00:00
Pawel Bylica f1975e4c5f Merge r232176: ConstantFold: Fix big shift constant folding
Constant folding for shift IR instructions ignores all bits above 32 of
second argument (shift amount).
Because of that, some undef results are not recognized and APInt can
raise an assert failure if second argument has more than 64 bits.

Patch by Paweł Bylica!

Differential Revision: http://reviews.llvm.org/D7701



git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@236109 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 14:57:35 +00:00
Pawel Bylica ec52f31064 Merge r231984: Handle big index in getelementptr instruction
CodeGen incorrectly ignores (assert from APInt) constant index bigger
than 2^64 in getelementptr instruction. This is a test and fix for that.

Patch by Paweł Bylica!

Reviewed By: rnk

Subscribers: majnemer, rnk, mcrosier, resistor, llvm-commits

Differential Revision: http://reviews.llvm.org/D8219



git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@236108 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 14:54:57 +00:00
Pawel Bylica 9fca970c36 Cherry-pick r233351, r233353, r233355: fix PR22304.
Original message from r233351:
Fix a bug in SelectionDAG scheduling backtracking code: PR22304.

It can happen (by line CurSU->isPending = true; // This SU is not in
AvailableQueue right now.) that a SUnit is mark as available but is
not in the AvailableQueue. For SUnit being selected for scheduling
both conditions must be met.

This patch mainly defensively protects from invalid removing a node
from a queue. Sometimes nodes are marked isAvailable but are not in
the queue because they have been defered due to some hazard.

The other two commits move a test from CodeGen/Generic to Codegen/X86.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@234303 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-07 07:58:46 +00:00