- Fix a small bug while handling target constant pools (one param was missing).
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 16 Nov 2009 04:33:42 +0000 (04:33 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 16 Nov 2009 04:33:42 +0000 (04:33 +0000)
commit6e0b658dadc15aecc4e8503b39741148cf18ee1f
treee0bb9b72c6a8fa534377e002ea3055ec29ffe8df
parentd6add155a7d690c11d707f36934d62a939531381
- Fix a small bug while handling target constant pools (one param was missing).
- Add a smarter constant pool loading, instead of:

lui $2, %hi($CPI1_0)
addiu $2, $2, %lo($CPI1_0)
lwc1 $f0, 0($2)

Generate:

lui $2, %hi($CPI1_0)
lwc1 $f0, %lo($CPI1_0)($2)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88886 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsISelDAGToDAG.cpp
lib/Target/Mips/MipsISelLowering.cpp
test/CodeGen/Mips/2009-11-16-CstPoolLoad.ll [new file with mode: 0644]