Put AllocationFn check before I->willReturn can allow CodeGenPrepare to remove useless malloc instruction
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/CodeGen/Generic/dead-allocation.ll | ||
---|---|---|
19 ↗ | (On Diff #445947) | add a newline at the end |
Comment Actions
Please put the test in llvm/test/Transforms/CodeGenPrepare instead and use update_test_checks.py. Omit the target triple if possible, which it likely is.
This comment was removed by drcut.
llvm/test/Transforms/CodeGenPrepare/dead-allocation.ll | ||
---|---|---|
1 | This test needs REQUIRES: arm-registered-target otherwise it fails if the ARM target isn't built |
Comment Actions
The test you added is failing on the PS4 Windows/Linux bots likely for the reason that Craig pointed out above. Please take a look and revert if you need time to investigate.
https://lab.llvm.org/buildbot/#/builders/139/builds/25268
https://lab.llvm.org/staging/#/builders/204/builds/1677
Comment Actions
sorry for that, fixed in https://github.com/llvm/llvm-project/commit/19d4f5e6495ce7e03b803235b648b915d5745314
This test needs REQUIRES: arm-registered-target otherwise it fails if the ARM target isn't built