HomePhabricator

[PowerPC] Do not assume operand of ADDI is an immediate
1f3be0e9b7b4Unpublished

Authored by nemanjai on Jun 7 2020, 8:16 PM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[PowerPC] Do not assume operand of ADDI is an immediate

After pseudo-expansion, we may end up with ADDI (add immediate)
instructions where the operand is not an immediate but a relocation.
For such instructions, attempts to get the immediate result in
assertion failures for obvious reasons.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=45432
(cherry picked from commit a56d057dfe3127c111c3470606c04e96d35b1fa3)

Details

Committed
tstellarJun 23 2020, 2:46 PM
Parents
rGf5bad9cac5d3: [BPF] fix incorrect type in BPFISelDAGToDAG readonly load optimization
Branches
Unknown
Tags
Unknown