summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2019-11-01 23:03:35 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2019-11-02 00:54:00 -0500
commit07d16424f28482a852a35bd817189d4dfb1701ef (patch)
treece6160d790cbb1e6c4bce583a6cc3a3ab4690213 /llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll
parentc7ab19dbb0f1f5c76ff70c7acab9f20c796cafb3 (diff)
downloadbcm5719-llvm-07d16424f28482a852a35bd817189d4dfb1701ef.tar.gz
bcm5719-llvm-07d16424f28482a852a35bd817189d4dfb1701ef.zip
[Attributor][FIX] Do not try to cast if a cast is not required
When we replace constant returns at the call site we did issue a cast in the hopes it would be a no-op if the types are equal. Turns out that is not the case and we have to check it ourselves first. Reused an IPConstantProp test for coverage. No functional change to the test wrt. IPConstantProp.
Diffstat (limited to 'llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud