summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-10-19 09:06:56 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-10-19 09:06:56 +0000
commit5b8cd2f73ce873c656e5cb4ebf3f6efececb780e (patch)
treee3d11f4b454a34a0a57a5dcfeb4b033defe5836b /llvm/lib/Transforms
parent312c3e5f39899e07c7f73e6687b8eeca1d6363cd (diff)
downloadbcm5719-llvm-5b8cd2f73ce873c656e5cb4ebf3f6efececb780e.tar.gz
bcm5719-llvm-5b8cd2f73ce873c656e5cb4ebf3f6efececb780e.zip
Move previously dead code to handle computing the known bits of an alias
up to where it actually works as intended. The problem is that a GlobalAlias isa GlobalValue and so the prior block handled all of the cases. This allows us to constant fold based on the actual constant expression in the global alias. As an example, see the last function in the newly added test case which explicitly aligns an unaligned pointer using constant expression math. Without this change, we fail to see that and fold an alignment test to zero. llvm-svn: 220164
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud